9 instantiations of JsonReaderState
System.Text.Json (9)
System\Text\Json\Document\JsonDocument.cs (1)
960
new
JsonReaderState
(options: readerOptions));
System\Text\Json\Reader\Utf8JsonReader.cs (2)
187
public 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)
154
var readerState = new
JsonReaderState
(jsonTypeInfo.Options.GetReaderOptions());
171
var readerState = new
JsonReaderState
(jsonTypeInfo.Options.GetReaderOptions());
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
558
JsonReaderState jsonReaderState =
new
(readerOptions);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (2)
31
var jsonReaderState = new
JsonReaderState
(options.GetReaderOptions());
64
var jsonReaderState = new
JsonReaderState
(options.GetReaderOptions());
18 references to JsonReaderState
Microsoft.Extensions.DependencyModel (2)
Utf8JsonReaderExtensions.cs (2)
139
long lineNumber = (long)(typeof(
JsonReaderState
).GetField("_lineNumber", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(boxedState) ?? -1);
140
long 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)
433
JsonReaderState
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.
187
public readonly
JsonReaderState
CurrentState => new JsonReaderState
211
/// This is the reason why the ctor accepts a <see cref="
JsonReaderState
"/>.
213
public 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
"/>.
24
public Utf8JsonReader(ReadOnlySequence<byte> jsonData, bool isFinalBlock,
JsonReaderState
state)
System\Text\Json\Serialization\ArgumentState.cs (1)
7
using 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)
11
using 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)
154
var
readerState = new JsonReaderState(jsonTypeInfo.Options.GetReaderOptions());
171
var
readerState = new JsonReaderState(jsonTypeInfo.Options.GetReaderOptions());
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
558
JsonReaderState
jsonReaderState = new(readerOptions);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (3)
31
var
jsonReaderState = new JsonReaderState(options.GetReaderOptions());
64
var
jsonReaderState = new JsonReaderState(options.GetReaderOptions());
113
ref
JsonReaderState
jsonReaderState,