ImmutableList<T>.Builder.FindLast(Predicate<T>) Method

Definition

Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire immutable list.

public:
 T FindLast(Predicate<T> ^ match);
public T FindLast (Predicate<T> match);
member this.FindLast : Predicate<'T> -> 'T
Public Function FindLast (match As Predicate(Of T)) As T

Parameters

match
Predicate<T>

The delegate that defines the conditions of the element to search for.

Returns

T

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

Applies to