131 references to Comment
Microsoft.Build (1)
Xml\ProjectXmlUtilities.XmlElementChildIterator.cs (1)
82case XmlNodeType.Comment:
Microsoft.Build.Tasks.Core (9)
CodeTaskFactory.cs (4)
432bool hasInvalidChildNodes = HasInvalidChildNodes(referenceNodes[i], [XmlNodeType.Comment, XmlNodeType.Whitespace]); 462bool hasInvalidChildNodes = HasInvalidChildNodes(usingNodes[i], [XmlNodeType.Comment, XmlNodeType.Whitespace]); 512bool hasInvalidChildNodes = HasInvalidChildNodes(codeNodes[0], [XmlNodeType.Comment, XmlNodeType.Whitespace, XmlNodeType.Text, XmlNodeType.CDATA]); 534case XmlNodeType.Comment:
ManifestUtil\ManifestFormatter.cs (1)
83case XmlNodeType.Comment:
ManifestUtil\TrustInfo.cs (1)
268if (previousNode?.NodeType == XmlNodeType.Comment)
ManifestUtil\XmlUtil.cs (1)
54else if (node.NodeType == XmlNodeType.Comment)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
327.Where(i => i.NodeType != XmlNodeType.Comment && i.NodeType != XmlNodeType.Whitespace))
XamlTaskFactory\RelationsParser.cs (1)
593(node.NodeType != XmlNodeType.Comment) &&
Microsoft.Extensions.Configuration.Xml (1)
XmlStreamConfigurationProvider.cs (1)
160case XmlNodeType.Comment:
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (2)
1315case XmlNodeType.Comment: 3814case XmlNodeType.Comment:
System.Configuration.ConfigurationManager (11)
System\Configuration\AppSettingsSection.cs (1)
123if (t != XmlNodeType.Comment)
System\Configuration\BaseConfigurationRecord.cs (4)
1529if (t != XmlNodeType.Comment) 2576if (t == XmlNodeType.Comment) continue; 3597if ((nodeType != XmlNodeType.Comment) && (nodeType != XmlNodeType.Whitespace)) 3627if ((nodeType != XmlNodeType.Comment) && (nodeType != XmlNodeType.Whitespace))
System\Configuration\HandlerBase.cs (1)
159if (node.NodeType == XmlNodeType.Comment || node.NodeType == XmlNodeType.Whitespace)
System\Configuration\XmlUtil.cs (5)
85case XmlNodeType.Comment: 235if ((nodeType != XmlNodeType.Comment) && (nodeType != XmlNodeType.EndElement)) 629if (nodeType == XmlNodeType.Comment) utilWriter.AppendComment(Reader.Value); 1006case XmlNodeType.Comment: 1036case XmlNodeType.Comment:
System.Data.Common (2)
System\Xml\DataPointer.cs (1)
509case XmlNodeType.Comment:
System\Xml\XmlDataDocument.cs (1)
1067XmlNodeType.Comment => CreateComment(dp.Value),
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
1031case XmlNodeType.Comment:
System\Xml\XmlBaseReader.cs (3)
1359while (_node.NodeType != XmlNodeType.Comment && _node.Value.TryReadBase64(buffer, offset, count, out actual)) 1969case XmlNodeType.Comment: 2555: base(XmlNodeType.Comment,
System\Xml\XmlDictionaryReader.cs (1)
417case XmlNodeType.Comment:
System\Xml\XmlDictionaryWriter.cs (1)
422case XmlNodeType.Comment:
System\Xml\XmlExceptionHelper.cs (1)
75case XmlNodeType.Comment:
System.Private.Xml (83)
System\Xml\BinaryXml\XmlBinaryReader.cs (5)
478case XmlNodeType.Comment: 999if (this.NodeType == XmlNodeType.ProcessingInstruction || this.NodeType == XmlNodeType.Comment) 1001while (Read() && (this.NodeType == XmlNodeType.ProcessingInstruction || this.NodeType == XmlNodeType.Comment)) 1041case XmlNodeType.Comment: 3158_nodetype = XmlNodeType.Comment;
System\Xml\Core\ReadContentAsBinaryHelper.cs (1)
430case XmlNodeType.Comment:
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (1)
352case XmlNodeType.Comment:
System\Xml\Core\XmlCharCheckingReader.cs (2)
198case XmlNodeType.Comment: 281case XmlNodeType.Comment:
System\Xml\Core\XmlCharCheckingReaderAsync.cs (2)
60case XmlNodeType.Comment: 143case XmlNodeType.Comment:
System\Xml\Core\XmlReader.cs (6)
1173case XmlNodeType.Comment: 1314Debug.Assert(0 == (IsTextualNodeBitmap & (1 << (int)XmlNodeType.Comment))); 1341Debug.Assert(0 != (CanReadContentAsBitmap & (1 << (int)XmlNodeType.Comment))); 1368Debug.Assert(0 != (HasValueBitmap & (1 << (int)XmlNodeType.Comment))); 1491case XmlNodeType.Comment: 1796case XmlNodeType.Comment:
System\Xml\Core\XmlReaderAsync.cs (2)
247case XmlNodeType.Comment: 347case XmlNodeType.Comment:
System\Xml\Core\XmlTextReaderImpl.cs (9)
2498ParseCDataOrComment(XmlNodeType.Comment); 2506ParseCDataOrComment(XmlNodeType.Comment); 6453ParseCDataOrComment(XmlNodeType.Comment); 6459ParseCDataOrComment(XmlNodeType.Comment); 6509Throw(SR.Xml_UnexpectedEOF, (type == XmlNodeType.Comment) ? "Comment" : "CDATA"); 6518char stopChar = (type == XmlNodeType.Comment) ? '-' : ']'; 6553else if (type == XmlNodeType.Comment) 8229if (ParseCDataOrComment(XmlNodeType.Comment, out startPos, out pos)) 8966case XmlNodeType.Comment:
System\Xml\Core\XmlTextReaderImplAsync.cs (8)
770await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false); 778await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false); 4178await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false); 4184await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false); 4252Throw(SR.Xml_UnexpectedEOF, (type == XmlNodeType.Comment) ? "Comment" : "CDATA"); 4260char stopChar = (type == XmlNodeType.Comment) ? '-' : ']'; 4296else if (type == XmlNodeType.Comment) 5342case XmlNodeType.Comment:
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
977type != XmlNodeType.Comment && type != XmlNodeType.ProcessingInstruction)
System\Xml\Core\XmlWriter.cs (1)
411case XmlNodeType.Comment:
System\Xml\Core\XmlWriterAsync.cs (2)
345case XmlNodeType.Comment: 408case XmlNodeType.Comment:
System\Xml\Core\XsdCachingReader.cs (1)
424case XmlNodeType.Comment:
System\Xml\Core\XsdCachingReaderAsync.cs (1)
56case XmlNodeType.Comment:
System\Xml\Core\XsdValidatingReader.cs (3)
2543case XmlNodeType.Comment: 2611case XmlNodeType.Comment: 2672case XmlNodeType.Comment:
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
881case XmlNodeType.Comment:
System\Xml\Dom\DocumentSchemaValidator.cs (2)
311case XmlNodeType.Comment: 748case XmlNodeType.Comment:
System\Xml\Dom\DocumentXPathNavigator.cs (5)
76case XmlNodeType.Comment: 1685case XmlNodeType.Comment: 1747case XmlNodeType.Comment: 2112case XmlNodeType.Comment: 2123case XmlNodeType.Comment:
System\Xml\Dom\XmlComment.cs (1)
31get { return XmlNodeType.Comment; }
System\Xml\Dom\XmlDocument.cs (6)
467case XmlNodeType.Comment: 539case XmlNodeType.Comment: 578case XmlNodeType.Comment: 985case XmlNodeType.Comment: 1142case XmlNodeType.Comment: 1230return XmlNodeType.Comment;
System\Xml\Dom\XmlDocumentFragment.cs (1)
135case XmlNodeType.Comment:
System\Xml\Dom\XmlElement.cs (1)
224case XmlNodeType.Comment:
System\Xml\Dom\XmlEntity.cs (1)
95type == XmlNodeType.Comment ||
System\Xml\Dom\XmlEntityReference.cs (1)
139case XmlNodeType.Comment:
System\Xml\Dom\XmlLoader.cs (2)
213case XmlNodeType.Comment: 541case XmlNodeType.Comment:
System\Xml\Dom\XmlNode.cs (1)
1475case XmlNodeType.Comment:
System\Xml\Dom\XmlNodeReader.cs (1)
177case XmlNodeType.Comment:
System\Xml\Schema\DtdValidator.cs (1)
77case XmlNodeType.Comment:
System\Xml\Schema\Inference\Infer.cs (1)
782do { _xtr.Read(); } while ((!_xtr.EOF) && ((_xtr.NodeType == XmlNodeType.CDATA) || (_xtr.NodeType == XmlNodeType.Text) || (_xtr.NodeType == XmlNodeType.Comment) || (_xtr.NodeType == XmlNodeType.ProcessingInstruction) || (_xtr.NodeType == XmlNodeType.Whitespace) || (_xtr.NodeType == XmlNodeType.SignificantWhitespace) || (_xtr.NodeType == XmlNodeType.XmlDeclaration)));
System\Xml\Schema\Parser.cs (1)
304case XmlNodeType.Comment:
System\Xml\Serialization\XmlSerializationReader.cs (1)
1278XmlNodeType.Comment => "<--",
System\Xml\XPath\XPathDocument.cs (1)
261case XmlNodeType.Comment:
System\Xml\XPath\XPathNavigator.cs (1)
2096case XmlNodeType.Comment:
System\Xml\XPath\XPathNavigatorReader.cs (1)
56XmlNodeType.Comment, // XPathNodeType.Comment
System\Xml\Xsl\Xslt\XsltInput.cs (1)
1045XmlNodeType.Comment => 4, // "<!--"
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (1)
74case XmlNodeType.Comment:
System\Xml\Xsl\XsltOld\RecordBuilder.cs (3)
392_currentInfo!.NodeType = XmlNodeType.Comment; 614Debug.Assert(_mainNode.NodeType == XmlNodeType.Comment); 727case XmlNodeType.Comment:
System\Xml\Xsl\XsltOld\SequentialOutput.cs (2)
446case XmlNodeType.Comment: 495case XmlNodeType.Comment:
System\Xml\Xsl\XsltOld\WriterOutput.cs (1)
55case XmlNodeType.Comment:
System.Private.Xml.Linq (14)
System\Xml\Linq\XComment.cs (1)
63return XmlNodeType.Comment;
System\Xml\Linq\XContainer.cs (4)
934case XmlNodeType.Comment: 990case XmlNodeType.Comment: 1088case XmlNodeType.Comment: 1204case XmlNodeType.Comment:
System\Xml\Linq\XNode.cs (2)
439case XmlNodeType.Comment: 489case XmlNodeType.Comment:
System\Xml\Linq\XNodeReader.cs (2)
168case XmlNodeType.Comment: 374case XmlNodeType.Comment:
System\Xml\XPath\XNodeNavigator.cs (5)
18(1 << (int)XmlNodeType.Comment); 30(1 << (int)XmlNodeType.Comment), // Comment 35(1 << (int)XmlNodeType.Comment) // All 213case XmlNodeType.Comment: 284case XmlNodeType.Comment:
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
611case XmlNodeType.Comment: