Skip to content

Instantly share code, notes, and snippets.

@plioi
Created December 2, 2011 03:19
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 plioi/1421580 to your computer and use it in GitHub Desktop.
Save plioi/1421580 to your computer and use it in GitHub Desktop.
public void ReceiveLambdaAsDelegate(Func<int, int> function) {...}
public void ReceiveLambdaAsExpression(Expression<Func<int, int>> expression) {...}
...
ReceiveLambdaAsDelegate(x => x*x);
ReceiveLambdaAsExpression(x => x*x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment