IndexOf

ReadOnlyList<T>.IndexOf method

Determines the index of a specific item in the collection.

public int IndexOf(T item)
Parameter Type Description
item T The item to locate in the collection.

Return Value

The index of item if found in the collection; otherwise, -1.

See Also