[]
Determines the index of a specific item in the IList.
public int IndexOf(object? value)
| Type | Name | Description |
|---|---|---|
| object | value | The object to locate in the IList. |
| Type | Description |
|---|---|
| int | The index of value if found in the list; otherwise, -1. |
Determines the index of a specific item in the IList<T>.
public int IndexOf(T item)
| Type | Name | Description |
|---|---|---|
| T | item | The object to locate in the IList<T>. |
| Type | Description |
|---|---|
| int | The index of value if found in the list; otherwise, -1. |