Прочитај на енглеском Уреди

Делите путем


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.

C#
public static System.Collections.Immutable.ImmutableArray<T>.Builder CreateBuilder<T>();

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

.NET 10 и друге верзије
Производ Верзије
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

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.

C#
public static System.Collections.Immutable.ImmutableArray<T>.Builder CreateBuilder<T>(int initialCapacity);

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

.NET 10 и друге верзије
Производ Верзије
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0