Skip to content

Instantly share code, notes, and snippets.

@plioi
Created December 2, 2011 03:19
Show Gist options
  • Save plioi/1421579 to your computer and use it in GitHub Desktop.
Save plioi/1421579 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