ImmutableDictionary<TKey,TValue>.Enumerator 结构 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
枚举不可变字典的内容,而无需分配任何内存。
NuGet package: 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 IDisposabletype ImmutableDictionary<'Key, 'Value>.Enumerator = struct
    interface IEnumerator<KeyValuePair<'Key, 'Value>>
    interface IDisposable
    interface IEnumeratorPublic Structure ImmutableDictionary(Of TKey, TValue).Enumerator
Implements IEnumerator(Of KeyValuePair(Of TKey, TValue))类型参数
- TKey
- TValue
- 继承
- 实现
属性
| Current | 获取枚举数当前位置的元素。 | 
方法
| Dispose() | 释放 ImmutableDictionary<TKey,TValue>.Enumerator 类的当前实例使用的资源。 | 
| MoveNext() | 将枚举器推进到不可变字典的下一个元素。 | 
| Reset() | 将枚举器设置到其初始位置,该位置位于字典中的第一个元素之前。 | 
显式接口实现
| IEnumerator.Current | 获取当前元素。 | 
适用于
线程安全性
此类型是线程安全的。