Advertisement
hejmus

Untitled

Aug 11th, 2011
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. Expression<Func<int, Func<int, int>>> add = (x) => ((y) => x + y);
  2.  
  3. var add2 = add.Compile()(2);
  4. Console.WriteLine(add.ToString());
  5. Console.WriteLine(add2.ToString());
  6. Console.WriteLine(add.Compile()(3)(2) == add2(3));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement