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