4 overrides of CreateComment
Microsoft.Build (1)
ElementLocation\XmlDocumentWithLocation.cs (1)
277public override XmlComment CreateComment(string data)
System.Configuration.ConfigurationManager (2)
System\Configuration\ConfigXmlDocument.cs (1)
113public override XmlComment CreateComment(string data)
System\Configuration\ErrorInfoXmlDocument.cs (1)
106public override XmlComment CreateComment(string data)
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\CanonicalXmlDocument.cs (1)
99public override XmlComment CreateComment(string? data)
17 references to CreateComment
Microsoft.Build (8)
ElementLocation\XmlDocumentWithLocation.cs (1)
285return base.CreateComment(interned);
Evaluation\Preprocessor.cs (7)
102destinationDocument.AppendChild(destinationDocument.CreateComment("\r\n" + new String('=', 140) + "\r\n" + _project.FullPath.Replace("--", "__") + "\r\n" + new String('=', 140) + "\r\n")); 293destination.AppendChild(destinationDocument.CreateComment(closedImportTag)); 312destination.AppendChild(destinationDocument.CreateComment( 321destination.AppendChild(destinationDocument.CreateComment("\r\n" + new String('=', 140) + "\r\n </Import>\r\n" + new String('=', 140) + "\r\n")); 325destination.AppendChild(destinationDocument.CreateComment("\r\n" + new String('=', 140) + "\r\n </Import>\r\n\r\n" + _filePaths.Peek()?.Replace("--", "__") + "\r\n" + new String('=', 140) + "\r\n")); 338destination.AppendChild(destinationDocument.CreateComment(importGroupTag)); 342destination.AppendChild(destinationDocument.CreateComment("</" + XMakeElements.importGroup + ">"));
Microsoft.Build.Tasks.Core (2)
ManifestUtil\TrustInfo.cs (1)
291XmlComment requestedPrivilegeComment = document.CreateComment(commentString);
ManifestUtil\XmlUtil.cs (1)
56XmlComment childComment = document.CreateComment(((XmlComment)node).Data);
System.Data.Common (1)
System\Xml\XmlDataDocument.cs (1)
1067XmlNodeType.Comment => CreateComment(dp.Value),
System.Private.Xml (6)
System\Xml\Dom\DocumentXmlWriter.cs (1)
292XmlNode node = _document.CreateComment(text);
System\Xml\Dom\XmlComment.cs (1)
38return OwnerDocument.CreateComment(Data);
System\Xml\Dom\XmlDocument.cs (2)
986newNode = CreateComment(node.Value); 1143return CreateComment(string.Empty);
System\Xml\Dom\XmlLoader.cs (1)
214node = _doc!.CreateComment(r.Value);
System\Xml\Schema\Parser.cs (1)
305currentNode = _dummyDocument.CreateComment(_reader.Value);