Method IndexOf
IndexOf(T)
Searches for an item in this indexed collection going forwards from the start.
Declaration
public int IndexOf(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | Item to search for. |
Returns
Type | Description |
---|---|
System.Int32 | Index of first occurrence from start of the item if found, else the two-complement (always negative) of the index at which the item would be put if it was added. |