Mono Class Library: System.Collections.Generic.IList<T> Overview | Members

System.Collections.Generic.IList<T>.IndexOf Method

Determines the index of a specific item in the current instance. [Edit]

public int IndexOf (T item)

Parameters

item
Documentation for this section has not yet been entered. [Edit]

Returns

The index of value if found in the current instance; otherwise, -1. [Edit]

Remarks

Implementations can vary in how they determine equality of objects; for example, List<T> uses the default comparer, whereas, Dictionary<T, U> allows the user to specify the IComparer<T> implementation to use for comparing keys. [Edit]

Requirements

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0