Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created April 5, 2013 16:06
Show Gist options
  • Save christiannagel/5320496 to your computer and use it in GitHub Desktop.
Save christiannagel/5320496 to your computer and use it in GitHub Desktop.
C# Lambda returning a value
Func<int> l2b = () => { return 42; };
int x2b = l2b();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment