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

Definition

Determines the index of a specific item in the IList<T>.

C#
int IList<KeyValuePair<TKey,TValue>>.IndexOf(System.Collections.Generic.KeyValuePair<TKey,TValue> item);

Parameters

item
KeyValuePair<TKey,TValue>

The object to locate in the IList<T>.

Returns

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

Implements

Applies to

Produk Versi
.NET 9, 10