Skip to content

JsonDocumentBuilderSnapshot<T>

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonDocumentBuilderSnapshot.cs

A snapshot of a JsonDocumentBuilder's state that can be used to cheaply restore a builder to its initial state via Restore, avoiding the cost of re-traversing the source document.

public sealed class JsonDocumentBuilderSnapshot<T> : IDisposable
    where T : struct, IMutableJsonElement<T>

Type Parameters

Parameter Description
T The type of mutable JSON element the snapshotted builder works with.

Inheritance

ObjectJsonDocumentBuilderSnapshot

Implements

IDisposable

Methods

Method Description
Dispose() Releases the rented buffers held by this snapshot.

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