IndexOf()

Collection::IndexOf(const T&) const method

Looks for element in collection.

int System::Collections::ObjectModel::Collection<T>::IndexOf(const T &item) const override

Arguments

ParameterTypeDescription
itemconst T&Item to look for.

Return Value

Index of first occurrence of specified item or -1 if not found.

See Also