ComplexValueBuilder.Create Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: ComplexValueBuilder.cs
Create(IMutableJsonDocument, int)
Creates a new ComplexValueBuilder for the specified parent document, pre-allocating space for the given number of elements.
public static ComplexValueBuilder Create(IMutableJsonDocument parentDocument, int initialElementCount)
Parameters
| Name | Type | Description |
|---|---|---|
parentDocument |
IMutableJsonDocument |
The parent IMutableJsonDocument to build into. |
initialElementCount |
int |
The estimated number of elements to allocate space for. |
Returns
A new ComplexValueBuilder instance.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue