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) 1078Debug.Assert((_trailingCommaBeforeComment && _readerOptions.CommentHandling == JsonCommentHandling.Allow) || !_trailingCommaBeforeComment); 1112switch (_readerOptions.CommentHandling) 1123Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1758if (_readerOptions.CommentHandling != JsonCommentHandling.Disallow) 1760if (_readerOptions.CommentHandling == JsonCommentHandling.Allow) 1773Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1780if (_readerOptions.AllowMultipleValues) 1819if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1831if (_readerOptions.AllowTrailingCommas) 1846if (_readerOptions.AllowTrailingCommas) 1873Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Allow); 1907if (_readerOptions.AllowMultipleValues) 1975if (_readerOptions.AllowTrailingCommas) 1998if (_readerOptions.AllowTrailingCommas) 2250if (_readerOptions.AllowMultipleValues) 2299if (_readerOptions.AllowTrailingCommas) 2315if (_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); 1549if (_readerOptions.CommentHandling != JsonCommentHandling.Disallow) 1551if (_readerOptions.CommentHandling == JsonCommentHandling.Allow) 1564Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1571if (_readerOptions.AllowMultipleValues) 1619if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1631if (_readerOptions.AllowTrailingCommas) 1646if (_readerOptions.AllowTrailingCommas) 1673Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Allow); 1707if (_readerOptions.AllowMultipleValues) 1784if (_readerOptions.AllowTrailingCommas) 1807if (_readerOptions.AllowTrailingCommas) 2065if (_readerOptions.AllowMultipleValues) 2123if (_readerOptions.AllowTrailingCommas) 2139if (_readerOptions.AllowTrailingCommas) 2179_readerOptions.CommentHandling == JsonCommentHandling.Allow || 2180_readerOptions.CommentHandling == JsonCommentHandling.Skip); 2182if (_readerOptions.CommentHandling == JsonCommentHandling.Allow)