Mono Class Library: System.Array Overview | Members

System.Array.TrueForAll<T> Method

Determines whether every element in the array matches the predicate. [Edit]

public static bool TrueForAll<T> (T[] array, Predicate<T> match)

Type Parameters

T
Documentation for this section has not yet been entered. [Edit]

Parameters

array
The array to check against the conditions. [Edit]
match
The predicate against which the elements are checked.. [Edit]

Returns

true, if every element in array matches the specified predicate; otherwise, false. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionarray or match is null. [Edit]

Remarks

The predicate returns true if the object passed to it matches the delegate. The elements of array are individually passed to the predicate, and processing is stopped when the delegate returns false for any element. [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0