I've been calling the following Linq method:
public static bool Any<TSource>(
this IEnumerable<TSource> source,
Func<TSource, bool> predicate
)
I'm wondering why Linq doesn't accept the perfectly good System.Predicate<T>
instead of, or as well as, Func<T,bool>
.
Is this a deliberate Linq style/design decision? Or am I missing something obvious about Func
and Predicate
?