Exists
Tests if any element of the collection satisfies the given predicate
.
If any application returns true then the overall result is true and no further elements are tested.
Otherwise, false is returned.
Parameters
Returns
Func<T, bool> predicate
IEnumerable<T> source
bool
Usage
Checking if the collection contains an even number
Last updated
Was this helpful?