日期:2014-05-17 浏览次数:20841 次
showExpression<expressionUser>(value => value.name.Contains("a"));
showExpression<expressionUser>(value => !value.name.Contains("a"));
ParameterExpression CS$0$0000;
ParameterExpression CS$0$0003;
showExpression<expressionUser>(Expression.Lambda<func<expressionUser, bool>>(Expression.Call(Expression.Field(CS$0$0000 = Expression.Parameter(typeof(expressionUser), "value"), fieldof(expressionUser.name)), (MethodInfo) methodof(string.Contains), new Expression[] { Expression.Constant("a", typeof(string)) }), new ParameterExpression[] { CS$0$0000 }));
showExpression<expressionUser>(Expression.Lambda<func<expressionUser, bool>>(Expression.Not(Expression.Call(Expression.Field(CS$0$0003 = Expression.Parameter(typeof(expressionUser), "value"), fieldof(expressionUser.name)), (MethodInfo) methodof(string.Contains), new Expression[] { Expression.Constant("a", typeof(string)) })), new ParameterExpression[] { CS$0$0003 }));