Determines the index of a specific item in the current instance.
- value
- The object to locate in the current instance.
The index of value if found in the current instance; otherwise, -1.
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.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0