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