Пример #1
0
 public override Node CloneNode(Boolean deep = true)
 {
     var node = new Comment(Data);
     CopyProperties(this, node, deep);
     return node;
 }
Пример #2
0
 public Comment ToElement()
 {
     var comment = new Comment();
     comment.Data = _data;
     return comment;
 }
Пример #3
0
 /// <summary>
 /// Appends a comment node to the specified node.
 /// </summary>
 /// <param name="parent">The node which will contain the comment node.</param>
 /// <param name="commentToken">The comment token.</param>
 void AddComment(Node parent, HtmlToken commentToken)
 {
     var tag = (HtmlCommentToken)commentToken;
     var comment = new Comment();
     comment.Data = tag.Data;
     parent.AppendChild(comment);
 }