11 references to Options
System.Text.Json (11)
System\Text\Json\Document\JsonDocument.Parse.cs (3)
434
CheckSupportedOptions(state.
Options
, nameof(reader));
641
document = Parse(rented.AsMemory(0, length), state.
Options
, rented);
666
document = ParseUnrented(owned, state.
Options
, reader.TokenType);
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
163
Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.
Options
.AllowMultipleValues);
180
Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.
Options
.AllowMultipleValues);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (4)
289
if (reader.CurrentState.
Options
.CommentHandling == JsonCommentHandling.Allow)
314
if (reader.CurrentState.
Options
.CommentHandling == JsonCommentHandling.Allow)
471
? new Utf8JsonReader(valueSequence, reader.CurrentState.
Options
)
472
: new Utf8JsonReader(valueSpan, reader.CurrentState.
Options
);
System\Text\Json\ThrowHelper.cs (2)
384
message = SR.Format(SR.ArrayDepthTooLarge, json.CurrentState.
Options
.MaxDepth);
441
message = SR.Format(SR.ObjectDepthTooLarge, json.CurrentState.
Options
.MaxDepth);