Skip to content

v4.0.30

Compare
Choose a tag to compare
@JonathanMagnan JonathanMagnan released this 02 Feb 05:52
· 9 commits to master since this release
b84f138

Download the library here

  • ADDED: Support to delegate keyword
var delegateAction = Eval.Execute<Action>(@"Action greet = delegate { Console.WriteLine(""Hello!""); };");
delegateAction();

var delegateFunc = Eval.Execute<Func<int, int, int>>(@"Func<int, int, int> sum = delegate (int a, int b) { return a + b; }; return sum;");
var x1 = delegateFunc(1, 2);

Trial unlocked until the end of February