Expression with dynamic class
问题 I'm trying to make Expressions work with dynamic classes that inherits DynamicObject like this: // Dynamic class defintion public class DynamicClass1 : DynamicObject { // Code here... } // Here is where I try to create where "someproperty" is untyped and the DynamicClass1 is referenced (not shown here) public static IQueryable DoStuff(this IQueryable source, string predicate, params object[] values) { LambdaExpression lambda = DynamicExpression.ParseLambda(source.ElementType, typeof(bool),