IEnumerable<T>.All Method

Definition

Determines whether all elements of the sequence satisfy a condition.

Delphi
function All(const predicate: Predicate<T>): Boolean

Parameters

predicate
Predicate<T>

A function to test each element for a condition.

Returns

Boolean

True if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, False .

Exceptions

predicate is nil .