Читати англійською Редагувати

Поділитися через


ImmutableDictionary<TKey,TValue>.Enumerator Struct

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Enumerates the contents of the immutable dictionary without allocating any memory.

NuGet package: System.Collections.Immutable (about immutable collections and how to install)

C#
public struct ImmutableDictionary<TKey,TValue>.Enumerator : System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey,TValue>>

Type Parameters

TKey
TValue
Inheritance
ImmutableDictionary<TKey,TValue>.Enumerator
Implements

Properties

Current

Gets the element at the current position of the enumerator.

Methods

Dispose()

Releases the resources used by the current instance of the ImmutableDictionary<TKey,TValue>.Enumerator class.

MoveNext()

Advances the enumerator to the next element of the immutable dictionary.

Reset()

Sets the enumerator to its initial position, which is before the first element in the dictionary.

Explicit Interface Implementations

IEnumerator.Current

Gets the current element.

Applies to

Продукт Версії
.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

Thread Safety

This type is thread safe.