Click or drag to resize
ArrayListIndexOf Method (Object)
Searches for the specified Object and returns the zero-based index of the first occurrence within the entire ArrayList.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual int IndexOf(
	Object value
)

Parameters

value
Type: SystemObject
The Object to locate in the ArrayList. The value can be null.

Return Value

Type: Int32
The zero-based index of the first occurrence of value within the entire ArrayList, if found; otherwise, -1.
See Also