ImmutableHashSet<T>.Enumerator ImmutableHashSet<T>.Enumerator ImmutableHashSet<T>.Enumerator ImmutableHashSet<T>.Enumerator Struct

定義

列舉不可變雜湊集的內容而不配置任何記憶體。Enumerates the contents of the immutable hash set without allocating any memory.

NuGet 套件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>.EnumeratorImmutableHashSet<T>.EnumeratorImmutableHashSet<T>.EnumeratorImmutableHashSet<T>.Enumerator
實作

屬性

Current Current Current Current

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

方法

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

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

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

將列舉程式前移至不可變雜湊集的下一個項目。Advances the enumerator to the next element of the immutable hash set.

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

將列舉程式設定至它的初始位置,就在雜湊集中的第一個項目之前。Sets the enumerator to its initial position, which is before the first element in the hash set.

明確介面實作

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

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

適用於

執行緒安全性

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