Convert Predicate<T> to Expression<Func<T, bool>>
问题 Is possible to convert a Predicate<T> to Expression<Func<T, bool>> in some way? I would like to use the next IQueryable function using the filters of the my ICollectionView: public static System.Linq.IQueryable<TSource> Where<TSource>(this System.Linq.IQueryable<TSource> source, System.Linq.Expressions.Expression<System.Func<TSource, bool>> predicate) Thanks 回答1: In theory it is possible to convert a delegate 'back' to an expression, because you can request the emitted IL of a delegate, which