我有一个谓词Expression<Func<T1, bool>>
我需要将它用作谓词,Expression<Func<T2, bool>>
使用我试图考虑几种方法的T1
属性,可能使用但无法理解它。T2
Expression.Invoke
以供参考:
class T2 {
public T1 T1;
}
和
Expression<Func<T1, bool>> ConvertPredicates(Expression<Func<T2, bool>> predicate) {
//what to do here...
}
提前非常感谢。