v4.0.36
Download the library here
- ADDED: Support to
nameof
operator: Is it possible to support nameof operator? #98 - ADDED: Support to
EvalManager.DefaultContext.AddMethod()
and method directory in the code:
// add a method for the current execution only
var r1 = Eval.Execute(@"
public int AddValue1(int x, int y)
{
return x + y;
}
return AddValue1(1, 2);
");
// add a method to the context for any execution
EvalManager.DefaultContext.AddMethod(@"
public int AddValue2(int x, int y)
{
return x + y;
}");
var r2 = Eval.Execute("AddValue2(1, 2)");
Trial unlocked until the end of April