ImmutableArray.CreateBuilder Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈