Поделиться через


OrderedDictionary<TKey,TValue>.KeyCollection.IList<TKey>.IndexOf Метод

Определение

Определяет индекс определенного элемента в IList<T>.

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

Параметры

item
TKey

Объект, который нужно найти в IList<T>.

Возвращаемое значение

Индекс item, если он найден в списке; в противном случае — значение -1.

Реализации

Применяется к