IEnumerable.any Method

Determines whether any element of a sequence satisfies a condition.
 

Parameters

predicate

Type: Function
A function to test each element for a condition.
Optional: True

Return Value


Type: Boolean
true if any elements in the source sequence pass the test in the specified predicate; otherwise, false.