I'm trying to use the sample code I found here for something i'm working on: How to convert a String to its equivalent LINQ Expression Tree?
In the solution the author uses the following:
var e = DynamicExpression.ParseLambda(new[] { p }, null, exp);
However, whenever I try to use it, it does not resolve. I get an error:
System.Linq.Expressions.DynamicExpression' does not contain a definition for 'ParseLambda'
I installed the System Linq Dynamic nuget package in the project, I've also added a using statement:
using System.Linq.Dynamic;
However, that appears greyed out so i'm guessing it's not picking up that the DynamicExpression object i'm referring to is from there, it's picking it up from System.Linq.Expression instead. Is there a way to fix this? I've tried making it
System.Linq.Dynamic.ParseLambda(new[] { p }, null, tagCondition);
but still no good, same error and the using statement is still greyed out.