JsonProperty<TValue>.WriteTo Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonProperty.cs
WriteTo(Utf8JsonWriter)
Write the property into the provided writer as a named JSON object property.
public void WriteTo(Utf8JsonWriter writer)
Parameters
| Name | Type | Description |
|---|---|---|
writer |
Utf8JsonWriter |
The writer. |
Exceptions
| Exception | Description |
|---|---|
ArgumentNullException |
The writer parameter is null. |
ArgumentException |
This Name's length is too large to be a JSON object property. |
InvalidOperationException |
This Value's ValueKind would result in an invalid JSON. |
ObjectDisposedException |
The parent JsonDocument 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