Mono Class Library: System.Collections.IList Overview | Members

System.Collections.IList.IndexOf Method

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

public int IndexOf (object value)

Parameters

value
The object to locate in the current instance. [Edit]

Returns

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

Remarks

Operation
As described above.

Note to Inheritors
The default implementations of this method use object.Equals(object) to search for value in the current instance.

Usage
Use IList.IndexOf(object) to determine if a object is contained in the current instance and, if it is contained, its index in the current instance.

[Edit]

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0