Method IndexOf
IndexOf(object?)
Determines the index of a specific item in the IList<T>.
public int IndexOf(object? item)
Parameters
Returns
- int
The index of
itemif found in the list; otherwise, -1.
Determines the index of a specific item in the IList<T>.
public int IndexOf(object? item)
The index of item if found in the list; otherwise, -1.