Method IndexOf
IndexOf(T)
Get the index of an item.
Declaration
public int IndexOf(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The object to locate in the list. |
Returns
Type | Description |
---|---|
int | The index of the item in the list if it exists, -1 otherwise. |