9 instantiations of JsonReaderState
System.Text.Json (9)
System\Text\Json\Document\JsonDocument.cs (1)
960new JsonReaderState(options: readerOptions));
System\Text\Json\Reader\Utf8JsonReader.cs (2)
187public readonly JsonReaderState CurrentState => new JsonReaderState 266: this(jsonData, isFinalBlock: true, new JsonReaderState(options))
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (1)
116: this(jsonData, isFinalBlock: true, new JsonReaderState(options))
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
154var readerState = new JsonReaderState(jsonTypeInfo.Options.GetReaderOptions()); 171var readerState = new JsonReaderState(jsonTypeInfo.Options.GetReaderOptions());
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
558JsonReaderState jsonReaderState = new(readerOptions);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (2)
31var jsonReaderState = new JsonReaderState(options.GetReaderOptions()); 64var jsonReaderState = new JsonReaderState(options.GetReaderOptions());
18 references to JsonReaderState
Microsoft.Extensions.DependencyModel (2)
Utf8JsonReaderExtensions.cs (2)
139long lineNumber = (long)(typeof(JsonReaderState).GetField("_lineNumber", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(boxedState) ?? -1); 140long bytePositionInLine = (long)(typeof(JsonReaderState).GetField("_bytePositionInLine", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(boxedState) ?? -1);
System.Text.Json (16)
System\Text\Json\Document\JsonDocument.Parse.cs (1)
433JsonReaderState state = reader.CurrentState;
System\Text\Json\Reader\JsonReaderState.cs (1)
28/// Constructs a new <see cref="JsonReaderState"/> instance.
System\Text\Json\Reader\Utf8JsonReader.cs (4)
18/// <see cref="JsonReaderState"/> and pass that in to the reader. 187public readonly JsonReaderState CurrentState => new JsonReaderState 211/// This is the reason why the ctor accepts a <see cref="JsonReaderState"/>. 213public Utf8JsonReader(ReadOnlySpan<byte> jsonData, bool isFinalBlock, JsonReaderState state)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (2)
22/// This is the reason why the ctor accepts a <see cref="JsonReaderState"/>. 24public Utf8JsonReader(ReadOnlySequence<byte> jsonData, bool isFinalBlock, JsonReaderState state)
System\Text\Json\Serialization\ArgumentState.cs (1)
7using FoundProperties = System.ValueTuple<System.Text.Json.Serialization.Metadata.JsonPropertyInfo, System.Text.Json.JsonReaderState, long, byte[]?, string?>;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
11using FoundProperty = System.ValueTuple<System.Text.Json.Serialization.Metadata.JsonPropertyInfo, System.Text.Json.JsonReaderState, long, byte[]?, string?>;
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
154var readerState = new JsonReaderState(jsonTypeInfo.Options.GetReaderOptions()); 171var readerState = new JsonReaderState(jsonTypeInfo.Options.GetReaderOptions());
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
558JsonReaderState jsonReaderState = new(readerOptions);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (3)
31var jsonReaderState = new JsonReaderState(options.GetReaderOptions()); 64var jsonReaderState = new JsonReaderState(options.GetReaderOptions()); 113ref JsonReaderState jsonReaderState,