It is the first time I use nuget and I am trying to compile a dynamic lambda parser example from NRecoFramework as shown below:
var lambdaParser = new NReco.LambdaParser();
var varContext = new Dictionary<string, object>();
varContext["one"] = 1M;
varContext["two"] = "2";
Console.WriteLine(lambdaParser.Eval("two>one && 0<one ? (1+8)/3+1*two : 0", varContext)); // --> 5`
but when I try to compile, the LamdaParser()
method is not recognized.
I have already imported the nuget and nreco frameworks to VisualStudio2017 but it still doesn't compile.
SOLVED
My bad, the problem was that I had imported both the Nreco Package and Nreco.LambdaParser Package, as the LamdaParser() method exits at both packages I was unable to compile. After removing Nreco.LamdaParser package the problem was solved.