public static IEnumerable <TSource> WhereDynamic <TSource>(this IEnumerable <TSource> source, Expression <Func <TSource, bool> > predicate) { var expression = ExpressionManager.ExpressionConvert(predicate); return(source.Where(expression.Compile())); }
public static Expression <Func <TSource, bool> > FilterNull <TSource>(this Expression <Func <TSource, bool> > predicate) { return(ExpressionManager.ExpressionConvert(predicate)); }