ImmutableDictionary<TKey,TValue>.Enumerator 結構

定義

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

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

public: value class ImmutableDictionary<TKey, TValue>::Enumerator : System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<TKey, TValue>>
public struct ImmutableDictionary<TKey,TValue>.Enumerator : System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey,TValue>>
type ImmutableDictionary<'Key, 'Value>.Enumerator = struct
    interface IEnumerator<KeyValuePair<'Key, 'Value>>
    interface IEnumerator
    interface IDisposable
Public Structure ImmutableDictionary(Of TKey, TValue).Enumerator
Implements IEnumerator(Of KeyValuePair(Of TKey, TValue))

類型參數

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

屬性

Current

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

方法

Dispose()

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

MoveNext()

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

Reset()

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

明確介面實作

IEnumerator.Current

取得目前的元素。

適用於

執行緒安全性

此型別具備執行緒安全。