3 writes to CommentHandling
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
183
CommentHandling
= JsonCommentHandling.Allow,
System.Text.Json (2)
System\Text\Json\Document\JsonDocumentOptions.cs (1)
77
CommentHandling
= CommentHandling,
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1045
CommentHandling
= ReadCommentHandling,
31 references to CommentHandling
System.Text.Json (31)
System\Text\Json\Document\JsonDocument.cs (3)
1123
Debug.Assert(readerOptions.
CommentHandling
>= 0 && readerOptions.
CommentHandling
<= JsonCommentHandling.Allow);
1125
if (readerOptions.
CommentHandling
== JsonCommentHandling.Allow)
System\Text\Json\Reader\Utf8JsonReader.cs (9)
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);
1786
if (_readerOptions.
CommentHandling
== JsonCommentHandling.Allow && first == JsonConstants.Slash)
1840
Debug.Assert(_readerOptions.
CommentHandling
== JsonCommentHandling.Allow);
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (12)
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);
1627
if (_readerOptions.
CommentHandling
== JsonCommentHandling.Allow && first == JsonConstants.Slash)
1681
Debug.Assert(_readerOptions.
CommentHandling
== JsonCommentHandling.Allow);
2187
_readerOptions.
CommentHandling
== JsonCommentHandling.Allow ||
2188
_readerOptions.
CommentHandling
== JsonCommentHandling.Skip);
2190
if (_readerOptions.
CommentHandling
== JsonCommentHandling.Allow)
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (7)
54
/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.
CommentHandling
"/> are used while reading.
107
/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.
CommentHandling
"/> are used while reading.
159
/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.
CommentHandling
"/> are used while reading.
208
/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.
CommentHandling
"/> are used while reading.
268
/// Hence, <see cref="JsonReaderOptions.AllowTrailingCommas"/>, <see cref="JsonReaderOptions.MaxDepth"/>, and <see cref="JsonReaderOptions.
CommentHandling
"/> are used while reading.
289
if (reader.CurrentState.Options.
CommentHandling
== JsonCommentHandling.Allow)
314
if (reader.CurrentState.Options.
CommentHandling
== JsonCommentHandling.Allow)