ImmutableArray<T>.Builder.MoveToImmutable Metod

Definition

Extraherar den interna matrisen som en ImmutableArray<T> och ersätter den med en matris med noll längd.

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)

Returer

En oföränderlig matris som innehåller elementen i byggaren.

Undantag

När Count är inte lika med Capacity.

Gäller för