2 writes to _readerOptions
System.Text.Json (2)
System\Text\Json\Reader\Utf8JsonReader.cs (1)
228_readerOptions = state._readerOptions;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (1)
39_readerOptions = state._readerOptions;
50 references to _readerOptions
System.Text.Json (50)
System\Text\Json\Reader\Utf8JsonReader.cs (27)
57internal readonly bool AllowMultipleValues => _readerOptions.AllowMultipleValues; 197readerOptions: _readerOptions, 229if (_readerOptions.MaxDepth == 0) 231_readerOptions.MaxDepth = JsonReaderOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth. 284if (_isFinalBlock && TokenType is JsonTokenType.None && !_readerOptions.AllowMultipleValues) 741if (_bitStack.CurrentDepth >= _readerOptions.MaxDepth) 760if (!_readerOptions.AllowTrailingCommas) 775if (_bitStack.CurrentDepth >= _readerOptions.MaxDepth) 794if (!_readerOptions.AllowTrailingCommas) 928if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && _tokenType == JsonTokenType.Comment) 1044Debug.Assert((_trailingCommaBeforeComment && _readerOptions.CommentHandling == JsonCommentHandling.Allow) || !_trailingCommaBeforeComment); 1078switch (_readerOptions.CommentHandling) 1089Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1725if (_readerOptions.CommentHandling != JsonCommentHandling.Disallow) 1727if (_readerOptions.CommentHandling == JsonCommentHandling.Allow) 1740Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1747if (_readerOptions.AllowMultipleValues) 1786if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1798if (_readerOptions.AllowTrailingCommas) 1813if (_readerOptions.AllowTrailingCommas) 1840Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Allow); 1874if (_readerOptions.AllowMultipleValues) 1942if (_readerOptions.AllowTrailingCommas) 1965if (_readerOptions.AllowTrailingCommas) 2217if (_readerOptions.AllowMultipleValues) 2266if (_readerOptions.AllowTrailingCommas) 2282if (_readerOptions.AllowTrailingCommas)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (23)
40if (_readerOptions.MaxDepth == 0) 42_readerOptions.MaxDepth = JsonReaderOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth. 236if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && _tokenType == JsonTokenType.Comment) 404Debug.Assert((_trailingCommaBeforeComment && _readerOptions.CommentHandling == JsonCommentHandling.Allow) || !_trailingCommaBeforeComment); 438switch (_readerOptions.CommentHandling) 455Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1557if (_readerOptions.CommentHandling != JsonCommentHandling.Disallow) 1559if (_readerOptions.CommentHandling == JsonCommentHandling.Allow) 1572Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1579if (_readerOptions.AllowMultipleValues) 1627if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1639if (_readerOptions.AllowTrailingCommas) 1654if (_readerOptions.AllowTrailingCommas) 1681Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Allow); 1715if (_readerOptions.AllowMultipleValues) 1792if (_readerOptions.AllowTrailingCommas) 1815if (_readerOptions.AllowTrailingCommas) 2073if (_readerOptions.AllowMultipleValues) 2131if (_readerOptions.AllowTrailingCommas) 2147if (_readerOptions.AllowTrailingCommas) 2187_readerOptions.CommentHandling == JsonCommentHandling.Allow || 2188_readerOptions.CommentHandling == JsonCommentHandling.Skip); 2190if (_readerOptions.CommentHandling == JsonCommentHandling.Allow)