ImmutableSortedDictionary<TKey,TValue>.Builder.ToImmutable Metod

Definition

Skapar en oföränderlig sorterad ordlista baserat på innehållet i den här instansen.

public:
 System::Collections::Immutable::ImmutableSortedDictionary<TKey, TValue> ^ ToImmutable();
public System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> ToImmutable();
member this.ToImmutable : unit -> System.Collections.Immutable.ImmutableSortedDictionary<'Key, 'Value>
Public Function ToImmutable () As ImmutableSortedDictionary(Of TKey, TValue)

Returer

En oföränderlig sorterad ordlista.

Kommentarer

Den här metoden är en O(n)-åtgärd och närmar sig O(1) tid när antalet faktiska mutationer till uppsättningen sedan det senaste anropet till den här metoden närmar sig 0.

Gäller för