Enumerable.all Method
Determines whether all elements of a sequence satisfy a condition.
This method is static.
Parameters
- source
-
Type: IEnumerable
An enumerable that contains the elements to apply the predicate to.
- predicate
-
Type: Function
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.