Method IndexOf
IndexOf(TValue)
Searches for the specified object and returns the index of the first occurrence within the entire list.
Declaration
public int IndexOf(TValue item)
Parameters
Type |
Name |
Description |
TValue |
item |
|
Returns
Implements
IndexOf(TValue, int)
Searches for the specified object and returns the index of the first occurrence within the range of elements in the list that extends from the specified
index to the last element.
Declaration
public int IndexOf(TValue item, int index)
Parameters
Type |
Name |
Description |
TValue |
item |
|
int |
index |
|
Returns
IndexOf(TValue, int, int)
Searches for the specified object and returns the index of the first occurrence within the range of elements in the list that starts at the specified
index and contains the specified number of elements.
Declaration
public int IndexOf(TValue item, int index, int count)
Parameters
Type |
Name |
Description |
TValue |
item |
|
int |
index |
|
int |
count |
|
Returns