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);
1759
if (
_readerOptions
.CommentHandling != JsonCommentHandling.Disallow)
1761
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow)
1774
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
1781
if (
_readerOptions
.AllowMultipleValues)
1820
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash)
1832
if (
_readerOptions
.AllowTrailingCommas)
1847
if (
_readerOptions
.AllowTrailingCommas)
1874
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Allow);
1908
if (
_readerOptions
.AllowMultipleValues)
1976
if (
_readerOptions
.AllowTrailingCommas)
1999
if (
_readerOptions
.AllowTrailingCommas)
2251
if (
_readerOptions
.AllowMultipleValues)
2300
if (
_readerOptions
.AllowTrailingCommas)
2316
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);
1564
if (
_readerOptions
.CommentHandling != JsonCommentHandling.Disallow)
1566
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow)
1579
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
1586
if (
_readerOptions
.AllowMultipleValues)
1634
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash)
1646
if (
_readerOptions
.AllowTrailingCommas)
1661
if (
_readerOptions
.AllowTrailingCommas)
1688
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Allow);
1722
if (
_readerOptions
.AllowMultipleValues)
1799
if (
_readerOptions
.AllowTrailingCommas)
1822
if (
_readerOptions
.AllowTrailingCommas)
2080
if (
_readerOptions
.AllowMultipleValues)
2138
if (
_readerOptions
.AllowTrailingCommas)
2154
if (
_readerOptions
.AllowTrailingCommas)
2194
_readerOptions
.CommentHandling == JsonCommentHandling.Allow ||
2195
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
2197
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow)