<PackageReference Include="System.Xml.XDocument" Version="4.0.11-beta-23409" />

System.Xml.Linq.XComment

public class XComment : XNode
Represents an XML comment.
public string Value { get; set; }

Gets or sets the string value of this comment.

public XComment(string value)

Initializes a new instance of the XComment class with the specified string content.

public XComment(XComment other)

Initializes a new instance of the XComment class from an existing comment node.