Beispiel #1
0
    public Node <T> Add(T value)
    {
        var childNode = new Node <T>(value);

        ChildrenLeft.Add(childNode);
        return(childNode);
    }
Beispiel #2
0
 public virtual void ConnectLeftChild(Node child)
 {
     if (child == null)
     {
         return;
     }
     if (!ChildrenLeft.Contains(child) && !KillLeftNodes.Contains(child))
     {
         ChildrenLeft.Add(child);
         child.setParent(this);
     }
 }