IEnumerable<T>.All(TPredicate<T>) Method
Determines whether all elements of a sequence satisfy a condition.
public function All(const predicate: TPredicate<T>): Boolean;
Parameters
- predicate
- Type: TPredicate<T>
A function to test each element for a condition.
Return Value
Type: Boolean
True if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, False.