11 references to Options
System.Text.Json (11)
System\Text\Json\Document\JsonDocument.Parse.cs (3)
425CheckSupportedOptions(state.Options, nameof(reader)); 632document = Parse(rented.AsMemory(0, length), state.Options, rented); 657document = ParseUnrented(owned, state.Options, reader.TokenType);
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 (4)
274if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 299if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 456? new Utf8JsonReader(valueSequence, reader.CurrentState.Options) 457: new Utf8JsonReader(valueSpan, reader.CurrentState.Options);
System\Text\Json\ThrowHelper.cs (2)
405message = SR.Format(SR.ArrayDepthTooLarge, json.CurrentState.Options.MaxDepth); 462message = SR.Format(SR.ObjectDepthTooLarge, json.CurrentState.Options.MaxDepth);