ImmutableSortedSet<T>::Builder::ToImmutable Method ()

 

Creates an immutable sorted set based on the contents of this instance.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
ImmutableSortedSet<T>^ ToImmutable()

Return Value

Type: System.Collections.Immutable::ImmutableSortedSet<T>^

An immutable set.

This method is an O(n) operation and approaches O(1) time as the number of actual mutations to the set since the last call to this method approaches 0.

Return to top
Show: