Skip to content

Instantly share code, notes, and snippets.

@davidelettieri
Created April 3, 2020 18:13
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 davidelettieri/769d766be9093c6697d4ccdae60d1a07 to your computer and use it in GitHub Desktop.
Save davidelettieri/769d766be9093c6697d4ccdae60d1a07 to your computer and use it in GitHub Desktop.
public static Func<T, T> ToFunc<T>(Action<T> a)
{
return t =>
{
a(t);
return t;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment