ImmutableDictionary<TKey,TValue>.Enumerator 結構

定義

列舉不可變字典內容且不配置記憶體。

NuGet 套件System.Collections.Immutable (關於固定集合及其安裝方法)

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

類型參數

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

屬性

Current

取得位於目前列舉值位置的項目。

方法

Dispose()

ImmutableDictionary<TKey,TValue>.Enumerator 類別的目前執行個體所使用的資源釋出。

MoveNext()

將列舉程式前移至不可變字典中的下一個元素。

Reset()

設定列舉程式至它的初始位置,這是在字典中第一個元素之前。

明確介面實作

IEnumerator.Current

取得目前的元素。

適用於

產品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

執行緒安全性

此型別具備執行緒安全。