Esempio n. 1
0
 public override void AddWhere(ConstantExpression exp, ExpressionInfo arg)
 {
     if (exp.Type.Name.Contains("DisplayClass"))
     {
         var type  = exp.Value.GetType();
         var value = type.InvokeMember(arg.ConstantName, BindingFlags.GetField, null, exp.Value, null);
         arg.SetObjectValue(value);
     }
     else
     {
         arg.SetMethodParameter(exp.Value);
     }
 }