IEnumerable<T>.Any(TPredicate<T>) Method
Determines whether any element of a sequence satisfies a condition.
public function Any(const predicate: TPredicate<T>): Boolean; overload;
Parameters
- predicate
- Type: TPredicate<T>
A function to test each element for a condition.
Return Value
Type: Boolean
True if any elements in the source sequence pass the test in the specified predicate; otherwise, False.