IEnumerable<T>.Any Method
Overloads
| Any |
Determines whether the sequence contains any elements. |
| Any(Predicate<T>) |
Determines whether any element of the sequence satisfies a condition. |
Determines whether the sequence contains any elements.
Delphi
function Any: Boolean
Returns
Boolean
True if the source sequence contains any elements; otherwise, False .
Determines whether any element of the sequence satisfies a condition.
Delphi
function Any(const predicate: Predicate<T>): Boolean
Parameters
- predicate
- Predicate<T>
A function to test each element for a condition.
Returns
Boolean
True if any elements in the source sequence pass the test in
the specified predicate; otherwise, False .
Exceptions
predicate is nil .