Exemplo n.º 1
0
 internal override Node Clone()
 {
     var clone = new Block();
     clone.Nodes.AddRange(from node in Nodes select node.Clone());
     return clone;
 }
Exemplo n.º 2
0
 internal Tag(string name, Block block = null)
 {            
     Name = name;
     Block = block ?? new Block();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Replace the nodes in `other` with the nodes
 /// in `this` block.
 /// </summary>
 /// <param name="other"></param>
 private void Replace(Block other)
 {
     other.Nodes = Nodes;
 }