BoundsCheckableList1.IndexOf

BoundsCheckableList<T>.IndexOf method

Searches for the specified object and returns the zero-based index of the first occurrence within the entire System.Collections.Generic.List.

public int IndexOf(T item)
ParameterTypeDescription
itemTThe object to locate in the System.Collections.Generic.List. The value can be null for reference types.

Return Value

The zero-based index of the first occurrence of item within the entire System.Collections.Generic.List, if found; otherwise, –1.

See Also