ImmutableList<T>.GetEnumerator 메서드

정의

변경할 수 없는 목록에서 반복되는 열거자를 반환합니다.

public:
 virtual System::Collections::Immutable::ImmutableList<T>::Enumerator GetEnumerator();
public:
 System::Collections::Immutable::ImmutableList<T>::Enumerator GetEnumerator();
public System.Collections.Immutable.ImmutableList<T>.Enumerator GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Immutable.ImmutableList<'T>.Enumerator
override this.GetEnumerator : unit -> System.Collections.Immutable.ImmutableList<'T>.Enumerator
member this.GetEnumerator : unit -> System.Collections.Immutable.ImmutableList<'T>.Enumerator
Public Function GetEnumerator () As ImmutableList(Of T).Enumerator

반환

변경할 수 없는 목록을 반복하는 데 사용할 수 있는 열거자입니다.

설명

주의

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

적용 대상