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.

Any

Determines whether the sequence contains any elements.

Delphi
function Any: Boolean

Returns

Boolean

True if the source sequence contains any elements; otherwise, False .

Any(Predicate<T>)

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 .