ImmutableSortedDictionary<TKey,TValue>.Enumerator 구조체

정의

이진 트리의 내용을 열거합니다.

NuGet 패키지: System.Collections.Immutable (변경할 수 없는 컬렉션 정보 및 설치 방법)

public: value class ImmutableSortedDictionary<TKey, TValue>::Enumerator : System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<TKey, TValue>>
public struct ImmutableSortedDictionary<TKey,TValue>.Enumerator : System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey,TValue>>
type ImmutableSortedDictionary<'Key, 'Value>.Enumerator = struct
    interface IEnumerator<KeyValuePair<'Key, 'Value>>
    interface IEnumerator
    interface IDisposable
Public Structure ImmutableSortedDictionary(Of TKey, TValue).Enumerator
Implements IEnumerator(Of KeyValuePair(Of TKey, TValue))

형식 매개 변수

TKey
TValue
상속
ImmutableSortedDictionary<TKey,TValue>.Enumerator
구현

설명

이 구조체는 다른 두 개의 이진 트리 열거자 System.Collections.Immutable.ImmutableList<T>.EnumeratorSystem.Collections.Immutable.ImmutableSortedSet<T>.Enumerator.

주의

이 열거자가 값 형식으로 사용되는 경우(즉, boxed가 아닌 경우) 두 번째 변수에 할당하거나 다른 메서드에 전달하여 복사하지 마세요. 이 열거자가 삭제되면 변경 가능한 참조 형식 스택을 리소스 풀에 반환하고 값 형식 열거자가 복사되는 경우(값을 전달하면 의도치 않게 쉽게 발생할 수 있음) 이미 리소스 풀에 반환된 스택이 열거자 복사본 중 하나에서 계속 사용 중일 수 있는 위험이 있습니다. 데이터 손상 또는 예외로 이어집니다.

속성

Current

열거자의 현재 위치에 있는 요소를 가져옵니다.

메서드

Dispose()

ImmutableSortedDictionary<TKey,TValue>.Enumerator 클래스의 현재 인스턴스에서 사용하는 리소스를 해제합니다.

MoveNext()

열거자를 변경할 수 없는 정렬된 사전의 다음 요소로 이동합니다.

Reset()

변경할 수 없는 정렬된 사전의 첫 번째 요소 앞의 초기 위치에 열거자를 설정합니다.

명시적 인터페이스 구현

IEnumerator.Current

현재 요소입니다.

적용 대상

스레드 보안

이 형식은 스레드로부터 안전합니다.