18 references to CurrentState
Microsoft.Extensions.DependencyModel (1)
Utf8JsonReaderExtensions.cs (1)
138object boxedState = reader.CurrentState;
System.Text.Json (17)
System\Text\Json\Document\JsonDocument.Parse.cs (1)
433JsonReaderState state = reader.CurrentState;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
369reader.CurrentState,
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
163Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.Options.AllowMultipleValues); 180Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.Options.AllowMultipleValues);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (4)
289if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 314if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 471? new Utf8JsonReader(valueSequence, reader.CurrentState.Options) 472: new Utf8JsonReader(valueSpan, reader.CurrentState.Options);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (1)
125jsonReaderState = reader.CurrentState;
System\Text\Json\ThrowHelper.cs (4)
359long lineNumber = json.CurrentState._lineNumber; 360long bytePositionInLine = json.CurrentState._bytePositionInLine; 384message = SR.Format(SR.ArrayDepthTooLarge, json.CurrentState.Options.MaxDepth); 441message = SR.Format(SR.ObjectDepthTooLarge, json.CurrentState.Options.MaxDepth);
System\Text\Json\ThrowHelper.Serialization.cs (4)
467long lineNumber = reader.CurrentState._lineNumber; 470long bytePositionInLine = reader.CurrentState._bytePositionInLine; 587long lineNumber = reader.CurrentState._lineNumber; 588long bytePositionInLine = reader.CurrentState._bytePositionInLine;