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


ImmutableDictionary<TKey,TValue>.Enumerator Структура

Определение

Перечисляет содержимое неизменяемого словаря без выделения памяти.

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 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
Наследование
ImmutableDictionary<TKey,TValue>.Enumerator
Реализации

Свойства

Имя Описание
Current

Возвращает элемент в текущей позиции перечислителя.

Методы

Имя Описание
Dispose()

Освобождает ресурсы, используемые текущим экземпляром ImmutableDictionary<TKey,TValue>.Enumerator класса.

MoveNext()

Перемещает перечислитель к следующему элементу неизменяемого словаря.

Reset()

Задает перечислителю начальную позицию, которая перед первым элементом в словаре.

Явные реализации интерфейса

Имя Описание
IEnumerator.Current

Возвращает текущий элемент.

Применяется к

Потокобезопасность

Этот тип является потокобезопасной.