Esempio n. 1
0
 internal override Node Clone()
 {
     var clone = new Block();
     clone.Nodes.AddRange(from node in Nodes select node.Clone());
     return clone;
 }
Esempio n. 2
0
 internal Tag(string name, Block block = null)
 {            
     Name = name;
     Block = block ?? new Block();
 }
Esempio 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;
 }