ArraySegment<T>.IList<T>.IndexOf(T) Método

Definição

Determina o índice de um item específico no segmento do array.

 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

Parâmetros

item
T

O objeto a localizar no segmento do array.

Devoluções

O índice de item se for encontrado na lista; caso contrário, -1.

Implementações

Exceções

O array subjacente é null.

Observações

Este membro é uma implementação explícita de membro de interface. Só pode ser usado quando a ArraySegment<T> instância é transmitida para uma IList<T> interface.

Aplica-se a