IndexOf()

IList::IndexOf(const T&) const method

Gets index of first appearance of item in container.

virtual int System::Collections::Generic::IList<T>::IndexOf(const T &item) const =0

Arguments

ParameterTypeDescription
itemconst T&Item to look for.

Return Value

Index of first appearance of item in container or -1 if not found.

See Also