public Node <T> Add(T value) { var childNode = new Node <T>(value); ChildrenLeft.Add(childNode); return(childNode); }
public virtual void ConnectLeftChild(Node child) { if (child == null) { return; } if (!ChildrenLeft.Contains(child) && !KillLeftNodes.Contains(child)) { ChildrenLeft.Add(child); child.setParent(this); } }