Enumerable.any Method
Determines whether any element of a sequence satisfies a condition.
This method is static.
Parameters
- source
-
Type: IEnumerable
An enumerable whose elements to apply the predicate to.
- 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.