Skip to content

Instantly share code, notes, and snippets.

@palladin
Created July 27, 2021 14:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save palladin/2ee5055ef6d378bc3c33d3ca957fbed1 to your computer and use it in GitHub Desktop.
Save palladin/2ee5055ef6d378bc3c33d3ca957fbed1 to your computer and use it in GitHub Desktop.
Know thyself
Expression<Func<Expression, Func<int, int>>> f =
self => x => ((Expression<Func<Expression, Func<int, int>>>)self).Compile()(self)(x + 1);
var x = f.Compile()(f)(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment