有没有可能以某种方式将 Predicate<T>
转换为 Expression<Func<T, bool>>
?
我想使用下一个 IQueryable 函数来使用我的 ICollectionView 的过滤器:
public static System.Linq.IQueryable<TSource> Where<TSource>(this System.Linq.IQueryable<TSource> source, System.Linq.Expressions.Expression<System.Func<TSource, bool>> predicate)
谢谢