Method IndexOf
IndexOf(T)
Searches for an item in the list going forwards from the start.
Declaration
int IndexOf(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | Item to search for. |
Returns
Type | Description |
---|---|
System.Int32 | Index of item from start. A negative number if item not found, namely the one's complement of the index at which the Add operation would put the item. |