Skip to content

Instantly share code, notes, and snippets.

@gabrieljoelc
Created March 12, 2013 17:18
Show Gist options
  • Save gabrieljoelc/5144905 to your computer and use it in GitHub Desktop.
Save gabrieljoelc/5144905 to your computer and use it in GitHub Desktop.
Create Expression from Func
Func<int> func = () => 1;
Expression<Func<int>> expression = Expression.Lambda<Func<int>>(Expression.Call(func.Method));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment