ImmutableArray.CreateBuilder Method

Definition

Overloads

CreateBuilder<T>()

Creates a mutable array that can be converted to an ImmutableArray without allocating new memory.

CreateBuilder<T>(Int32)

Creates a mutable array that can be converted to an ImmutableArray without allocating new memory.

CreateBuilder<T>()

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
ImmutableArray.cs

Creates a mutable array that can be converted to an ImmutableArray without allocating new memory.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T>::Builder ^ CreateBuilder();
public static System.Collections.Immutable.ImmutableArray<T>.Builder CreateBuilder<T> ();
static member CreateBuilder : unit -> System.Collections.Immutable.ImmutableArray<'T>.Builder
Public Function CreateBuilder(Of T) () As ImmutableArray(Of T).Builder

Type Parameters

T

The type of elements stored in the builder.

Returns

A mutable array of the specified type that can be efficiently converted to an immutable array.

Applies to

CreateBuilder<T>(Int32)

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
ImmutableArray.cs

Creates a mutable array that can be converted to an ImmutableArray without allocating new memory.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T>::Builder ^ CreateBuilder(int initialCapacity);
public static System.Collections.Immutable.ImmutableArray<T>.Builder CreateBuilder<T> (int initialCapacity);
static member CreateBuilder : int -> System.Collections.Immutable.ImmutableArray<'T>.Builder
Public Function CreateBuilder(Of T) (initialCapacity As Integer) As ImmutableArray(Of T).Builder

Type Parameters

T

The type of elements stored in the builder.

Parameters

initialCapacity
Int32

The initial capacity of the builder.

Returns

A mutable array of the specified type that can be efficiently converted to an immutable array.

Applies to