閱讀英文版本

分享方式:


OrderedDictionary<TKey,TValue>.KeyCollection.IList<TKey>.IndexOf 方法

定義

決定 IList<T>中特定專案的索引。

C#
int IList<TKey>.IndexOf(TKey item);

參數

item
TKey

IList<T>中尋找的物件。

傳回

在清單中找到時,item 的索引;否則為 -1。

實作

適用於

產品 版本
.NET 9, 10