Expression owner problem

May 31, 2011 at 2:24 PM


first of all, thanks for great prject!! I enjoy using it :)

But I have one problem now:

I have some class that has the following property(indexer)

public MyClass


      public object this[string name]


      get{}; set{};



When I define MyClass to be Owner or the ExpressionContext, and then try to compile the expression like "this[\"fieldName\"] = 77",

I get the following ExpressionCompileException: "Could not find a field/property/variable with the name 'this'.

The exact code that throws this exceptions is: IGenericExpression<bool> expression = context.CompileGeneric<bool>(condition);

Am I doing anything wrong?