Exemple #1
0
 public override INode Clone(Boolean deep = true)
 {
     var node = new Comment(Owner, Data);
     CloneNode(node, deep);
     return node;
 }
Exemple #2
0
 /// <summary>
 /// Returns a duplicate of the node on which this method was called.
 /// </summary>
 /// <param name="deep">
 /// Optional value: true if the children of the node should also be
 /// cloned, or false to clone only the specified node.
 /// </param>
 /// <returns>The duplicate node.</returns>
 public override INode Clone(Boolean deep = true)
 {
     var node = new Comment(Owner, Data);
     CopyProperties(this, node, deep);
     return node;
 }