ImmutableHashSet<T>.Enumerator 结构

定义

枚举不可变哈希集的内容,而无需分配任何内存。Enumerates the contents of the immutable hash set without allocating any memory.

NuGet package: System.Collections.Immutable关于不可变集合和安装方法NuGet package: System.Collections.Immutable (about immutable collections and how to install)

public: value class ImmutableHashSet<T>::Enumerator : System::Collections::Generic::IEnumerator<T>
public struct ImmutableHashSet<T>.Enumerator : System.Collections.Generic.IEnumerator<T>
type ImmutableHashSet<'T>.Enumerator = struct
    interface IEnumerator<'T>
    interface IEnumerator
    interface IDisposable
Public Structure ImmutableHashSet(Of T).Enumerator
Implements IEnumerator(Of T)

类型参数

T
继承
ImmutableHashSet<T>.Enumerator
实现

属性

Current

获取枚举数当前位置的元素。Gets the element at the current position of the enumerator.

方法

Dispose()

释放 ImmutableHashSet<T>.Enumerator 类的当前实例使用的资源。Releases the resources used by the current instance of the ImmutableHashSet<T>.Enumerator class.

MoveNext()

将枚举器推进到不可变哈希集的下一个元素。Advances the enumerator to the next element of the immutable hash set.

Reset()

将枚举器设置到其初始位置,该位置位于哈希集内的第一个元素之前。Sets the enumerator to its initial position, which is before the first element in the hash set.

显式接口实现

IEnumerator.Current

获取当前元素。Gets the current element.

适用于

线程安全性

此类型是线程安全的。This type is thread safe.