Determines whether every element in the array matches the conditions defined by the specified predicate.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static bool TrueForAll<T>(
T[] array,
Predicate<T> match
)
Parameters
- array
- Type: T
The one-dimensional, zero-based Array to check against the conditions - match
- Type: SystemPredicateT
The PredicateT that defines the conditions to check against the elements.
Type Parameters
- T
- The type of the elements of the array.
Return Value
Type:
Booleantrue if every element in
array matches the conditions defined by the specified predicate; otherwise, false. If there are no elements in the array, the return value is true.
Exceptions See Also