Method FindLastIndex
FindLastIndex(int, int, Predicate<TValue>)
Searches for an element that matches the conditions defined by the specified predicate, and returns the index of the last occurrence within the range of
elements in the list that contains the specified number of elements and ends at the specified index.
Declaration
public int FindLastIndex(int startIndex, int count, Predicate<TValue> match)
Parameters
Returns
FindLastIndex(int, Predicate<TValue>)
Searches for an element that matches the conditions defined by the specified predicate, and returns the index of the last occurrence within the range of
elements in the list that extends from the first element to the specified index.
Declaration
public int FindLastIndex(int startIndex, Predicate<TValue> match)
Parameters
Type |
Name |
Description |
int |
startIndex |
|
Predicate<TValue> |
match |
|
Returns
FindLastIndex(Predicate<TValue>)
Searches for an element that matches the conditions defined by the specified predicate, and returns the index of the last occurrence within the entire
list.
Declaration
public int FindLastIndex(Predicate<TValue> match)
Parameters
Type |
Name |
Description |
Predicate<TValue> |
match |
|
Returns