ImmutableHashSet<T>.Builder.ToImmutable Método

Definição

Cria um conjunto de hash imutável de acordo com o conteúdo desta instância.Creates an immutable hash set based on the contents of this instance.

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

Retornos

ImmutableHashSet<T>

Um conjunto imutável.An immutable set.

Comentários

Esse método é uma operação O (n) e aproxima o (1) tempo como o número de mutações reais para o conjunto desde que a última chamada para esse método se aproxima de 0.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.

Aplica-se a