ImmutableSortedSet<T>.Builder.ToImmutable 메서드

정의

이 인스턴스의 내용에 따라 변경할 수 없는 정렬된 집합을 만듭니다.

public:
 System::Collections::Immutable::ImmutableSortedSet<T> ^ ToImmutable();
public System.Collections.Immutable.ImmutableSortedSet<T> ToImmutable();
member this.ToImmutable : unit -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function ToImmutable () As ImmutableSortedSet(Of T)

반품

변경할 수 없는 집합입니다.

설명

이 메서드는 O(n) 연산이며 이 메서드에 대한 마지막 호출이 0에 접근하기 때문에 집합에 대한 실제 돌연변이 수가 0에 가까워지면서 O(1) 시간에 접근합니다.

적용 대상