Releases: zzzprojects/Eval-Expression.NET
Releases · zzzprojects/Eval-Expression.NET
v2.1.2
v2.1.1
Download the library here
FIXED: Full namespace used in Generic Type (Issue #7)
Example:
var context = new EvalContext();
context.RegisterType(typeof(System.Collections.Generic.List<>));
context.RegisterType(typeof(string));
//Not Error
var xx2 = context.Compile<Func<System.Collections.Generic.List<System.String>, object>>(@"
var lst = new System.Collections.Generic.List<List<System.String>>();
return lst;", "reader");
//Error
var xx = context.Compile<Func<System.Collections.Generic.List<System.String>, object>>(@"
var lst = new System.Collections.Generic.List<System.Collections.Generic.List<System.String>>();
return lst;", "reader");
PRO Version unlocked for the current month (June)
v2.1.0
v2.0.9
Download the library here
FIXED: Method overload resolution when with normal && expanded expression.
Example
Was resolved with Eval.Execute(this string, param object[]) method instead of Eval.Execute(this string, object) method
Dictionary<string, object> Values = new Dictionary<string, object>() { { "value1", 20.35 }, { "value2", 61.48 } };
double result1 = Eval.Execute<double>(@" double result1 = Eval.Execute<double>(@'value1 + value2', Values);
", new { Values = Values });
PRO Version unlocked for the current month (May)
v2.0.8
Download the library here
FIXED: Null reference issue with null parameter (Issue #6)
Example
dynamic expandoObject = new ExpandoObject();
expandoObject.Property1 = false;
expandoObject.Property2 = null;
if (Eval.Execute<bool>(@"Property1 == null", expandoObject ))
{
Console.WriteLine(@"Property1 == true");
}
PRO Version unlocked for the current month (May)