ImmutableDictionary<TKey,TValue>.Enumerator ImmutableDictionary<TKey,TValue>.Enumerator ImmutableDictionary<TKey,TValue>.Enumerator ImmutableDictionary<TKey,TValue>.Enumerator Struct

定義

列舉不可變字典內容且不配置記憶體。Enumerates the contents of the immutable dictionary without allocating any memory.

NuGet 套件System.Collections.Immutable (關於固定集合及其安裝方法)NuGet package: System.Collections.Immutable (about immutable collections and how to install)

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>.EnumeratorImmutableDictionary<TKey,TValue>.EnumeratorImmutableDictionary<TKey,TValue>.EnumeratorImmutableDictionary<TKey,TValue>.Enumerator
實作

屬性

Current Current Current Current

取得位於目前列舉值位置的項目。Gets the element at the current position of the enumerator.

方法

Dispose() Dispose() Dispose() Dispose()

ImmutableDictionary<TKey,TValue>.Enumerator 類別的目前執行個體所使用的資源釋出。Releases the resources used by the current instance of the ImmutableDictionary<TKey,TValue>.Enumerator class.

MoveNext() MoveNext() MoveNext() MoveNext()

將列舉程式前移至不可變字典中的下一個元素。Advances the enumerator to the next element of the immutable dictionary.

Reset() Reset() Reset() Reset()

設定列舉程式至它的初始位置,這是在字典中第一個元素之前。Sets the enumerator to its initial position, which is before the first element in the dictionary.

明確介面實作

IEnumerator.Current IEnumerator.Current IEnumerator.Current IEnumerator.Current

取得目前的元素。Gets the current element.

適用於

執行緒安全性

此型別具備執行緒安全。This type is thread safe.