protected override DomNode CloneCore() { var result = OwnerDocument.CreateComment(Data); result.CopyAnnotationsFrom(AnnotationList); return(result); }
// Creates a duplicate of this node. public override XmlNode CloneNode(bool deep) { Debug.Assert(OwnerDocument != null); return(OwnerDocument.CreateComment(Data)); }
public DomComment CreateComment() { return(OwnerDocument.CreateComment()); }
public DomComment CreateComment(string data) { return(OwnerDocument.CreateComment(data)); }
// Clone this node. public override XmlNode CloneNode(bool deep) { return(OwnerDocument.CreateComment(Data)); }