Skip to content

Instantly share code, notes, and snippets.

@Fosna
Created January 22, 2016 09:17
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 Fosna/a10e777a83c5e7be5a3a to your computer and use it in GitHub Desktop.
Save Fosna/a10e777a83c5e7be5a3a to your computer and use it in GitHub Desktop.
It's suggested to use LINQPad 5 (download link: http://www.linqpad.net/download.aspx). See that expression tree you get from expression a + b looks awfully like abstract syntax tree nodes that Roslyn compiler uses.
Expression<Func<int, int, int>> exp =
(a, b) => a + b;
Console.WriteLine(exp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment