Click or drag to resize
ArrayTrueForAllT Method
Determines whether every element in the array matches the conditions defined by the specified predicate.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: Boolean
true 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
ExceptionCondition
ArgumentNullExceptionarray is null.-or-match is null.
See Also