JsonWorkspace.Reset Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonWorkspace.cs
Reset()
Resets the workspace for reuse, disposing all workspace-managed documents and clearing the document tracking state. The backing array is retained so subsequent evaluations avoid re-allocation.
public void Reset()
Remarks
Any JsonElement instances that reference documents in this workspace become invalid after this call. The caller must not use them.
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