Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created April 5, 2013 16:03
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 christiannagel/5320485 to your computer and use it in GitHub Desktop.
Save christiannagel/5320485 to your computer and use it in GitHub Desktop.
C# Lambda - returning a value
Func<int> l2 = () => 42;
int x2 = l2();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment