ImmutableDictionary<TKey,TValue>.Enumerator 結構
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
列舉不可變字典內容且不配置記憶體。
NuGet 套件:System.Collections.Immutable (關於固定集合及其安裝方法)
public: value class ImmutableDictionary<TKey, TValue>::Enumerator : System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<TKey, TValue>>
C#
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
type ImmutableDictionary<'Key, 'Value>.Enumerator = struct
interface IEnumerator<KeyValuePair<'Key, 'Value>>
interface IDisposable
interface IEnumerator
Public Structure ImmutableDictionary(Of TKey, TValue).Enumerator
Implements IEnumerator(Of KeyValuePair(Of TKey, TValue))
- TKey
- TValue
- 繼承
- 實作
Current |
取得位於目前列舉值位置的項目。 |
Dispose() |
將 ImmutableDictionary<TKey,TValue>.Enumerator 類別的目前執行個體所使用的資源釋出。 |
Move |
將列舉程式前移至不可變字典中的下一個元素。 |
Reset() |
設定列舉程式至它的初始位置,這是在字典中第一個元素之前。 |
IEnumerator. |
取得目前的元素。 |
產品 | 版本 |
---|---|
.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 |
此型別具備執行緒安全。