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)
57
internal readonly bool AllowMultipleValues =>
_readerOptions
.AllowMultipleValues;
197
readerOptions:
_readerOptions
,
229
if (
_readerOptions
.MaxDepth == 0)
231
_readerOptions
.MaxDepth = JsonReaderOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth.
284
if (_isFinalBlock && TokenType is JsonTokenType.None && !
_readerOptions
.AllowMultipleValues)
741
if (_bitStack.CurrentDepth >=
_readerOptions
.MaxDepth)
760
if (!
_readerOptions
.AllowTrailingCommas)
775
if (_bitStack.CurrentDepth >=
_readerOptions
.MaxDepth)
794
if (!
_readerOptions
.AllowTrailingCommas)
928
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow && _tokenType == JsonTokenType.Comment)
1078
Debug.Assert((_trailingCommaBeforeComment &&
_readerOptions
.CommentHandling == JsonCommentHandling.Allow) || !_trailingCommaBeforeComment);
1112
switch (
_readerOptions
.CommentHandling)
1123
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
1758
if (
_readerOptions
.CommentHandling != JsonCommentHandling.Disallow)
1760
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow)
1773
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
1780
if (
_readerOptions
.AllowMultipleValues)
1819
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash)
1831
if (
_readerOptions
.AllowTrailingCommas)
1846
if (
_readerOptions
.AllowTrailingCommas)
1873
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Allow);
1907
if (
_readerOptions
.AllowMultipleValues)
1975
if (
_readerOptions
.AllowTrailingCommas)
1998
if (
_readerOptions
.AllowTrailingCommas)
2250
if (
_readerOptions
.AllowMultipleValues)
2299
if (
_readerOptions
.AllowTrailingCommas)
2315
if (
_readerOptions
.AllowTrailingCommas)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (23)
40
if (
_readerOptions
.MaxDepth == 0)
42
_readerOptions
.MaxDepth = JsonReaderOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth.
236
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow && _tokenType == JsonTokenType.Comment)
404
Debug.Assert((_trailingCommaBeforeComment &&
_readerOptions
.CommentHandling == JsonCommentHandling.Allow) || !_trailingCommaBeforeComment);
438
switch (
_readerOptions
.CommentHandling)
455
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
1549
if (
_readerOptions
.CommentHandling != JsonCommentHandling.Disallow)
1551
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow)
1564
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
1571
if (
_readerOptions
.AllowMultipleValues)
1619
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash)
1631
if (
_readerOptions
.AllowTrailingCommas)
1646
if (
_readerOptions
.AllowTrailingCommas)
1673
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Allow);
1707
if (
_readerOptions
.AllowMultipleValues)
1784
if (
_readerOptions
.AllowTrailingCommas)
1807
if (
_readerOptions
.AllowTrailingCommas)
2065
if (
_readerOptions
.AllowMultipleValues)
2123
if (
_readerOptions
.AllowTrailingCommas)
2139
if (
_readerOptions
.AllowTrailingCommas)
2179
_readerOptions
.CommentHandling == JsonCommentHandling.Allow ||
2180
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
2182
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow)