Utf8JsonWriter.Flush Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: Utf8JsonWriter.cs
Flush()
Commits the JSON text written so far which makes it visible to the output destination.
public void Flush()
Exceptions
| Exception | Description |
|---|---|
ObjectDisposedException |
The instance of Utf8JsonWriter has been disposed. |
Remarks
In the case of IBufferWriter, this advances the underlying IBufferWriter based on what has been written so far. In the case of Stream, this writes the data to the stream and flushes it.
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