IEnumerable<T>.Last(TPredicate<T>) Method

Returns the last element of a sequence that satisfies a specified condition.

Namespace: Spring.Collections
public
 function Last(const predicate: TPredicate<T>): T; overload;

Parameters

predicate
Type: TPredicate<T>

A function to test each element for a condition.

Return Value

Type: T

The last element in the sequence that passes the test in the specified predicate function.