OrderedDictionary<TKey,TValue>.ValueCollection.IList<TValue>.IndexOf Metod

Definition

Avgör indexet för ett specifikt objekt i IList<T>.

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

Parametrar

item
TValue

Objektet som ska hittas IList<T>i .

Returer

Indexet för item om det finns i listan, annars -1.

Implementeringar

Gäller för