Created
February 5, 2015 12:04
-
-
Save acple/6267195d699b7d7a418d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Acple.ForbiddenExtensions | |
{ | |
public static class Extensions | |
{ | |
public static TResult 変換するやつ<T, TResult>(this T value, Func<T, TResult> processor) | |
{ | |
return processor(value); | |
} | |
public static T 処理するやつ<T>(this T value, Action<T> processor) | |
{ | |
processor(value); | |
return value; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment