Mono Class Library: System.Array Overview | Members

System.Array.FindAll<T> Method

Retrieves all the elements that match the conditions defined by the specified predicate. [Edit]

public static T[] FindAll<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 specifies the elements to search for. [Edit]

Returns

An array containing all the elements that match the conditions defined by the specified predicate, if found; otherwise, an empty array. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionarray or match is null. [Edit]

Remarks

The elements of array are individually passed to the predicate, and those elements for which the predicate returns true, are saved in the returned array. [Edit]

Requirements

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