Mono Class Library: System.Array Overview | Members

System.Array.Exists<T> Method

Determines whether the specified array contains any element that matches the conditions defined by the specified predicate. [Edit]

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

Type Parameters

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

Parameters

array
The array to search. [Edit]
match
The predicate that defines the conditions of the elements to search for. [Edit]

Returns

true, if the array contains one or more elements that match the conditions defined by 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. Each element of array is passed to the predicate in turn, and processing is stopped when the predicate returns true. [Edit]

Requirements

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