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.

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

Type Parameters

T
Documentation for this section has not yet been entered.

Parameters

array
The array to search.
match
The predicate that specifies the elements to search for.

Returns

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

Exceptions

TypeReason
ArgumentNullExceptionarray or match is null.

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.

Requirements

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