最佳答案
我有两个类型为Expression<Func<T, bool>>
的表达式,我想取它们的OR, and或NOT,并获得一个相同类型的新表达式
Expression<Func<T, bool>> expr1;
Expression<Func<T, bool>> expr2;
...
//how to do this (the code below will obviously not work)
Expression<Func<T, bool>> andExpression = expr AND expr2