Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: int LastIndexOf<T>(this IEnumerable<T>, Func<T, bool>)

Declaration

public static int LastIndexOf<T>(
    this IEnumerable<T> source,
    Func<T, bool> predicate
)

Summary

Returns the index of the last element in this source satisfying the specified predicate. If no such elements are found, returns -1.

Generic type parameters

TThis type parameter is not documented.

Remarks

This method is optimised for the case in which the input sequence is a list or array. In all other cases, the collection is evaluated completely before this method returns.