[This is preliminary documentation and is subject to change.]
Returns the position of an object in the collection.
Declaration Syntax
C# |
public int IndexOf( T obj )
Parameters
- obj (T)
- The object to locate in the collection.
Return Value
The index of the object found or -1 if not there.