Skip to content

Instantly share code, notes, and snippets.

@acple
Created February 5, 2015 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acple/6267195d699b7d7a418d to your computer and use it in GitHub Desktop.
Save acple/6267195d699b7d7a418d to your computer and use it in GitHub Desktop.
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