how to convert predicate code example
Example: how to convert func to predicate
Func<T, bool> func = expression.Compile();
Predicate<T> predicate = func.Invoke;
Func<T, bool> func = expression.Compile();
Predicate<T> predicate = func.Invoke;