Releases: zzzprojects/Eval-Expression.NET
Releases · zzzprojects/Eval-Expression.NET
v3.0.0
Download the library here
- FREE: All evaluations with 50 characters or less is now FREE
- FREE: All LINQ dynamic methods are now FREE
- BREAKING CHANGES: All LINQ dynamic method is now found in the
System.Linq
namespace instead ofZ.Expressions
to make them easier to use. - BREAKING CHANGES: ALL LINQ dynamic method without the
Dynamic
suffix now have the suffix to make it simpler and more obvious. Affected methods:SkipWhile
,TakeWhile
,Where
,All
,Any
,Count
,First
,FirstOrDefault
,Last
,LastOrDefault
,LongCount
,Single
,SingleOrDefault
Trial unlocked for the current month (November)
v2.9.57
Download the library here
- ADDED: Support to Alias for Static Method when none exist with the initial name
public Execute()
{
var context = new EvalContext();
context.RegisterStaticMethod(typeof(AliasMethod));
context.RegisterAlias("Method3", "Method2");
var x2 = context.Execute("Method3(2)");
}
public class AliasMethod
{
public static int Method2(int x)
{
return x + x;
}
}
Trial unlocked for the current month (November)
v2.9.56
Download the library here
- ADDED: It is now possible to add a variable with space or other special characters
var values = new Dictionary<string, object>() {
{ "variable with space", 98 }
};
int result = Eval.Execute<int>("variable with space + 1", values);
Trial unlocked for the current month (November)
v2.9.55
Download the library here
- ADDED: Support to method when registering member via RegisterGlobalVariable
public class GlobalVariableMethod
{
public int RegisteredMethodName(int i)
{
return i + 2;
}
}
var variableName = new GlobalVariableMethod();
var context = new EvalContext();
context.RegisterGlobalVariable("CustomGlobalVariable", variableName, true);
var rTest = context.Execute("RegisteredMethodName(5)");
Trial unlocked for the current month (October)