ערוך

שתף באמצעות


OrderedDictionary<TKey,TValue>.KeyCollection.IList<TKey>.IndexOf Method

Definition

Determines the index of a specific item in the 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

Parameters

item
TKey

The object to locate in the IList<T>.

Returns

The index of item if found in the list; otherwise, -1.

Implements

Applies to