Mono Class Library: System.Array Overview | Members

System.Array.FindLast<T> Method

Searches for an element that matches the predicate, and returns the last occurrence within the entire array. [Edit]

public static T FindLast<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

The last element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type T. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionarray or match is null. [Edit]

Remarks

The elements of array are individually passed to the predicate, moving backward in the array, starting with the last element and ending with the first element. Processing is stopped when a match is found. [Edit]

Requirements

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