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); 1564if (_readerOptions.CommentHandling != JsonCommentHandling.Disallow) 1566if (_readerOptions.CommentHandling == JsonCommentHandling.Allow) 1579Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1586if (_readerOptions.AllowMultipleValues) 1634if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1646if (_readerOptions.AllowTrailingCommas) 1661if (_readerOptions.AllowTrailingCommas) 1688Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Allow); 1722if (_readerOptions.AllowMultipleValues) 1799if (_readerOptions.AllowTrailingCommas) 1822if (_readerOptions.AllowTrailingCommas) 2080if (_readerOptions.AllowMultipleValues) 2138if (_readerOptions.AllowTrailingCommas) 2154if (_readerOptions.AllowTrailingCommas) 2194_readerOptions.CommentHandling == JsonCommentHandling.Allow || 2195_readerOptions.CommentHandling == JsonCommentHandling.Skip); 2197if (_readerOptions.CommentHandling == JsonCommentHandling.Allow)