ArraySegment<T>.IList<T>.IndexOf(T) Metoda

Definice

Určuje index konkrétní položky v segmentu pole.

 virtual int System.Collections.Generic.IList<T>.IndexOf(T item) = System::Collections::Generic::IList<T>::IndexOf;
int IList<T>.IndexOf (T item);
abstract member System.Collections.Generic.IList<T>.IndexOf : 'T -> int
override this.System.Collections.Generic.IList<T>.IndexOf : 'T -> int
Function IndexOf (item As T) As Integer Implements IList(Of T).IndexOf

Parametry

item
T

Objekt, který chcete najít v segmentu pole.

Návraty

Int32

Index nalezených item v seznamu; jinak -1.

Implementuje

Výjimky

Základní pole je null.

Poznámky

Tento člen je explicitní implementace členu rozhraní. Lze ho použít pouze v ArraySegment<T> případě, že je instance přetypována do IList<T> rozhraní.

Platí pro