You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the below code I get "Expression is missing an 'as' clause" on the call to ParseLambda. This is my first time using this library so not sure if what i'm doing is ok or not?
const string exp = @"version > new System.Version(""8.3.0.689"")";
var p = Expression.Parameter(typeof(System.Version), "version");
var l = System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(new[] { p }, null, exp);
var version = new System.Version("8.3.0.600");
var result = l.Compile().DynamicInvoke(version);
The text was updated successfully, but these errors were encountered:
varversion=newSystem.Version("8.3.0.600");// Method 1 - With Compileconststringexp=@"version > new System.Version(""8.3.0.689"")";varcompiled=Eval.Compile<Func<System.Version,bool>>(exp,"version");Console.WriteLine(compiled(version));// Method 2 - With ExecuteConsole.WriteLine(Eval.Execute(exp,new{version}));
For the below code I get "Expression is missing an 'as' clause" on the call to ParseLambda. This is my first time using this library so not sure if what i'm doing is ok or not?
The text was updated successfully, but these errors were encountered: