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>>
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 |
此类型是线程安全的。