JsonDocumentBuilder<T>.CreateSnapshot Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonDocumentBuilder.cs
CreateSnapshot()
Creates a snapshot of this builder's current state. The snapshot can be used to cheaply restore the builder to this state via Restore without re-traversing the source document.
public JsonDocumentBuilderSnapshot<T> CreateSnapshot()
Returns
JsonDocumentBuilderSnapshot<T>
A JsonDocumentBuilderSnapshot that holds rented copies of this builder's backing data. The caller must dispose the snapshot when it is no longer needed.
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