Skip to content

JsonDocumentBuilder<T>.RootElement Property

Definition

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

RootElement()

Gets the root element of the JSON document.

public T RootElement { get; }

Returns

T

Property Value

T

The mutable root element of the document.

Exceptions

Exception Description
ObjectDisposedException Thrown when the document has been disposed.

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