3 writes to CommentHandling
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
183CommentHandling = JsonCommentHandling.Allow,
System.Text.Json (2)
System\Text\Json\Document\JsonDocumentOptions.cs (1)
77CommentHandling = CommentHandling,
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1045CommentHandling = ReadCommentHandling,
31 references to CommentHandling
System.Text.Json (31)
System\Text\Json\Document\JsonDocument.cs (3)
1123Debug.Assert(readerOptions.CommentHandling >= 0 && readerOptions.CommentHandling <= JsonCommentHandling.Allow); 1125if (readerOptions.CommentHandling == JsonCommentHandling.Allow)
System\Text\Json\Reader\Utf8JsonReader.cs (9)
928if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && _tokenType == JsonTokenType.Comment) 1044Debug.Assert((_trailingCommaBeforeComment && _readerOptions.CommentHandling == JsonCommentHandling.Allow) || !_trailingCommaBeforeComment); 1078switch (_readerOptions.CommentHandling) 1089Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1725if (_readerOptions.CommentHandling != JsonCommentHandling.Disallow) 1727if (_readerOptions.CommentHandling == JsonCommentHandling.Allow) 1740Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1786if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1840Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Allow);
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (12)
236if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && _tokenType == JsonTokenType.Comment) 404Debug.Assert((_trailingCommaBeforeComment && _readerOptions.CommentHandling == JsonCommentHandling.Allow) || !_trailingCommaBeforeComment); 438switch (_readerOptions.CommentHandling) 455Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1557if (_readerOptions.CommentHandling != JsonCommentHandling.Disallow) 1559if (_readerOptions.CommentHandling == JsonCommentHandling.Allow) 1572Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Skip); 1627if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && first == JsonConstants.Slash) 1681Debug.Assert(_readerOptions.CommentHandling == JsonCommentHandling.Allow); 2187_readerOptions.CommentHandling == JsonCommentHandling.Allow || 2188_readerOptions.CommentHandling == JsonCommentHandling.Skip); 2190if (_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. 289if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow) 314if (reader.CurrentState.Options.CommentHandling == JsonCommentHandling.Allow)