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

定义

确定数组段中特定项的索引。Determines the index of a specific item in the array segment.

 virtual int System.Collections.Generic.IList<T>.IndexOf(T item) = System::Collections::Generic::IList<T>::IndexOf;
int IList<T>.IndexOf (T item);
Function IndexOf (item As T) As Integer Implements IList(Of T).IndexOf

参数

item
T T T

要在数组段中查找的对象。The object to locate in the array segment.

返回

如果在列表中找到,则为 item 的索引;否则为 -1。The index of item if found in the list; otherwise, -1.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ArraySegment<T> 实例被强制转换为 IList<T> 接口时使用。It can be used only when the ArraySegment<T> instance is cast to an IList<T> interface.

适用于