Method LastIndexOf
LastIndexOf(TValue)
Searches for the specified object and returns the index of the last occurrence within the entire list.
Declaration
public int LastIndexOf(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
LastIndexOf(TValue, int)
Searches for the specified object 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 LastIndexOf(TValue item, int index)
Parameters
Type |
Name |
Description |
TValue |
item |
|
int |
index |
|
Returns
LastIndexOf(TValue, int, int)
Searches for the specified object 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 LastIndexOf(TValue item, int index, int count)
Parameters
Type |
Name |
Description |
TValue |
item |
|
int |
index |
|
int |
count |
|
Returns