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) 1069Debug.Assert((_trailingCommaBeforeComment && _readerOptions.CommentHandling == JsonCommentHandling.Allow) || !_trailingCommaBeforeComment); 1103switch (_readerOptions.CommentHandling) 1114Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1750if (_readerOptions.CommentHandling != JsonCommentHandling.Disallow) 1752if (_readerOptions.CommentHandling == JsonCommentHandling.Allow) 1765Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1772if (_readerOptions.AllowMultipleValues) 1811if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1823if (_readerOptions.AllowTrailingCommas) 1838if (_readerOptions.AllowTrailingCommas) 1865Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Allow); 1899if (_readerOptions.AllowMultipleValues) 1967if (_readerOptions.AllowTrailingCommas) 1990if (_readerOptions.AllowTrailingCommas) 2242if (_readerOptions.AllowMultipleValues) 2291if (_readerOptions.AllowTrailingCommas) 2307if (_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)