[]
Returns the index of the first occurrence of a value in the collection.
public int IndexOf(string value)
Type | Name | Description |
---|---|---|
string | value | The object to locate in array. |
Type | Description |
---|---|
int | The index of the first occurrence of value within the entire array, if found; otherwise, the lower bound of the array - 1. |