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

Definicja

Określa indeks określonego elementu w segmencie tablicy.

 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

Obiekt do zlokalizowania w segmencie tablicy.

Zwraca

Int32

Indeks , jeśli zostanie znaleziony item na liście; w przeciwnym razie -1.

Implementuje

Wyjątki

Macierz bazowa to null.

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ArraySegment<T> wystąpienie jest rzutowe do interfejsu IList<T> .

Dotyczy