Skip to content

JsonPatchDocument.CreateBuilder Method

Definition

Namespace: Corvus.Text.Json.Patch
Assembly: Corvus.Text.Json.dll

Overloads

Method Description
CreateBuilder(JsonWorkspace, ref JsonPatchDocument.Source, int)
CreateBuilder(JsonWorkspace, int, int) Creates an empty mutable document builder.
CreateBuilder(JsonWorkspace) Creates and initializes a mutable document from this instance.

CreateBuilder(JsonWorkspace, ref JsonPatchDocument.Source, int)

public static JsonDocumentBuilder<JsonPatchDocument.Mutable> CreateBuilder(JsonWorkspace workspace, ref JsonPatchDocument.Source value, int initialCapacity)

Parameters

Name Type Description
workspace JsonWorkspace
value ref JsonPatchDocument.Source
initialCapacity int (optional)

Returns

JsonDocumentBuilder<JsonPatchDocument.Mutable>

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

CreateBuilder(JsonWorkspace, int, int)

Creates an empty mutable document builder.

public static JsonDocumentBuilder<JsonPatchDocument.Mutable> CreateBuilder(JsonWorkspace workspace, int initialCapacity, int initialValueBufferSize)

Parameters

Name Type Description
workspace JsonWorkspace The JSON workspace.
initialCapacity int The (optional) estimate of the capacity to reserve for the document. (optional)
initialValueBufferSize int The initial size in bytes of the value buffer. (optional)

Returns

JsonDocumentBuilder<JsonPatchDocument.Mutable>

An empty mutable document builder.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

CreateBuilder(JsonWorkspace)

Creates and initializes a mutable document from this instance.

public JsonDocumentBuilder<JsonPatchDocument.Mutable> CreateBuilder(JsonWorkspace workspace)

Parameters

Name Type Description
workspace JsonWorkspace The JSON workspace.

Returns

JsonDocumentBuilder<JsonPatchDocument.Mutable>

An instance of a mutable document initialized with this 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