ImmutableArray<T>::ToBuilder Method ()

 

Creates a mutable array that has the same contents as this array and can be efficiently mutated across multiple operations using standard mutable interfaces.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
ImmutableArray<T>::Builder^ ToBuilder()

Return Value

Type: System.Collections.Immutable::ImmutableArray<T>::Builder^

The new builder with the same contents as this array.

This is an O(1) operation and results in only a single (small) memory allocation. The mutable list that is returned is not thread-safe.

Return to top
Show: