[]
        
(Showing Draft Content)

C1.C1Preview.OwnedCollectionBase.IndexOf

IndexOf Method

IndexOf(object)

Searches for the specified Object and returns the zero-based index of the first occurrence within the entire collection.

Declaration
public int IndexOf(object obj)
Parameters
Type Name Description
object obj

The Object to locate in the collection. The value can be a null reference.

Returns
Type Description
int

The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.