ImmutableArray<T>.Builder.MoveToImmutable Methode

Definition

Extrahiert das interne Array als array ImmutableArray<T> und 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

Ein unveränderliches Array, das die Elemente des Generators enthält.

Ausnahmen

Wenn Count dies nicht gleich ist Capacity.

Gilt für: