閱讀英文版本

分享方式:


OrderedDictionary<TKey,TValue>.Enumerator 結構

定義

列舉 OrderedDictionary<TKey,TValue>的專案。

C#
public struct OrderedDictionary<TKey,TValue>.Enumerator : System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey,TValue>>, System.Collections.IDictionaryEnumerator

類型參數

TKey
TValue
繼承
OrderedDictionary<TKey,TValue>.Enumerator
實作

屬性

Current

取得集合中位於列舉值目前位置的專案。

方法

MoveNext()

將列舉值前進至集合的下一個專案。

明確介面實作

IDictionaryEnumerator.Entry

取得目前字典專案的索引鍵和值。

IDictionaryEnumerator.Key

取得目前字典專案的索引鍵。

IDictionaryEnumerator.Value

取得目前字典專案的值。

IDisposable.Dispose()

執行與釋放、釋放或重設非受控資源相關聯的應用程式定義工作。

IEnumerator.Current

取得集合中位於列舉值目前位置的專案。

IEnumerator.Reset()

將列舉值設定為其初始位置,也就是集合中第一個專案之前。

適用於

產品 版本
.NET 9, 10