10 references to Options
System.Text.Json (10)
System\Text\Json\Document\JsonDocument.Parse.cs (3)
454CheckSupportedOptions(state.Options, nameof(reader)); 661document = Parse(rented.AsMemory(0, length), state.Options, rented, allowDuplicateProperties: allowDuplicateProperties); 686document = ParseUnrented(owned, state.Options, reader.TokenType, allowDuplicateProperties: allowDuplicateProperties);
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 (3)
274if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 299if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 490readerOptions: 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);