Skip to content

Utf8JsonReader.CurrentState Property

Definition

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

CurrentState()

Returns the current snapshot of the Utf8JsonReader state which must be captured by the caller and passed back in to the Utf8JsonReader ctor with more data. Unlike the Utf8JsonReader, which is a ref struct, the state can survive across async/await boundaries and hence this type is required to provide support for reading in more data asynchronously before continuing with a new instance of the Utf8JsonReader.

public JsonReaderState CurrentState { get; }

Returns

JsonReaderState

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