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)
1044
Debug.Assert((_trailingCommaBeforeComment &&
_readerOptions
.CommentHandling == JsonCommentHandling.Allow) || !_trailingCommaBeforeComment);
1078
switch (
_readerOptions
.CommentHandling)
1089
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
1725
if (
_readerOptions
.CommentHandling != JsonCommentHandling.Disallow)
1727
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow)
1740
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
1747
if (
_readerOptions
.AllowMultipleValues)
1786
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash)
1798
if (
_readerOptions
.AllowTrailingCommas)
1813
if (
_readerOptions
.AllowTrailingCommas)
1840
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Allow);
1874
if (
_readerOptions
.AllowMultipleValues)
1942
if (
_readerOptions
.AllowTrailingCommas)
1965
if (
_readerOptions
.AllowTrailingCommas)
2217
if (
_readerOptions
.AllowMultipleValues)
2266
if (
_readerOptions
.AllowTrailingCommas)
2282
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);
1557
if (
_readerOptions
.CommentHandling != JsonCommentHandling.Disallow)
1559
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow)
1572
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
1579
if (
_readerOptions
.AllowMultipleValues)
1627
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash)
1639
if (
_readerOptions
.AllowTrailingCommas)
1654
if (
_readerOptions
.AllowTrailingCommas)
1681
Debug.Assert(
_readerOptions
.CommentHandling == JsonCommentHandling.Allow);
1715
if (
_readerOptions
.AllowMultipleValues)
1792
if (
_readerOptions
.AllowTrailingCommas)
1815
if (
_readerOptions
.AllowTrailingCommas)
2073
if (
_readerOptions
.AllowMultipleValues)
2131
if (
_readerOptions
.AllowTrailingCommas)
2147
if (
_readerOptions
.AllowTrailingCommas)
2187
_readerOptions
.CommentHandling == JsonCommentHandling.Allow ||
2188
_readerOptions
.CommentHandling == JsonCommentHandling.Skip);
2190
if (
_readerOptions
.CommentHandling == JsonCommentHandling.Allow)