ImmutableArray<T>.Builder.MoveToImmutable Methode

Definition

Extrahiert das interne Array als und ImmutableArray<T> ersetzt es durch ein Array der Länge Null.

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

Gibt zurück

Dies ist ein unveränderliches Array, das die Elemente des Generators enthält.

Ausnahmen

Wenn Count nicht gleich Capacityist.

Gilt für: