[]
Searches for the specified object and returns the zero-based index of the first occurrence within the entire list.
protected int IndexOf(T item)
| Type | Name | Description |
|---|---|---|
| T | item | The object to locate in the list. |
| Type | Description |
|---|---|
| int | The zero-based index of the first occurrence of item within the entire lis, if found; otherwise, –1. |