Esempio n. 1
0
        protected override DomNode CloneCore()
        {
            var result = OwnerDocument.CreateComment(Data);

            result.CopyAnnotationsFrom(AnnotationList);
            return(result);
        }
Esempio n. 2
0
 // 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));
 }
Esempio n. 5
0
 // Clone this node.
 public override XmlNode CloneNode(bool deep)
 {
     return(OwnerDocument.CreateComment(Data));
 }