[]
Searches for the specified Object and returns the zero-based index of the first occurrence within the entire collection.
public int IndexOf(object obj)
Type | Name | Description |
---|---|---|
object | obj | The Object to locate in the collection. The value can be a null reference. |
Type | Description |
---|---|
int | The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1. |