19 references to CurrentState
Microsoft.Extensions.DependencyModel (1)
Utf8JsonReaderExtensions.cs (1)
138object boxedState = reader.CurrentState;
System.Text.Json (18)
System\Text\Json\Document\JsonDocument.Parse.cs (1)
453JsonReaderState state = reader.CurrentState;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
385reader.CurrentState,
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
148Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.Options.AllowMultipleValues); 165Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.Options.AllowMultipleValues);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (5)
274if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 299if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 355lineNumber = reader.CurrentState._lineNumber; 356bytePositionInLine = reader.CurrentState._bytePositionInLine; 490readerOptions: reader.CurrentState.Options,
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (1)
152jsonReaderState = reader.CurrentState;
System\Text\Json\ThrowHelper.cs (4)
380long lineNumber = json.CurrentState._lineNumber; 381long bytePositionInLine = json.CurrentState._bytePositionInLine; 405message = SR.Format(SR.ArrayDepthTooLarge, json.CurrentState.Options.MaxDepth); 462message = SR.Format(SR.ObjectDepthTooLarge, json.CurrentState.Options.MaxDepth);
System\Text\Json\ThrowHelper.Serialization.cs (4)
529long lineNumber = reader.CurrentState._lineNumber; 532long bytePositionInLine = reader.CurrentState._bytePositionInLine; 651long lineNumber = reader.CurrentState._lineNumber; 652long bytePositionInLine = reader.CurrentState._bytePositionInLine;