/// <summary> /// Sets up the node with an element value and links to its parent and child nodes. /// </summary> /// <param name="the_value">the value to set in the element.</param> /// <param name="the_parent">the parent node.</param> /// <param name="the_left">the left child node.</param> /// <param name="the_right">the right child node.</param> public BinaryNode(T the_value, BinaryNode <T> the_parent, BinaryNode <T> the_left, BinaryNode <T> the_right) : this(the_value, the_left, the_right) { parent = the_parent; }
/// <summary> /// Sets up the node with an element value and links to its child nodes. /// </summary> /// <param name="the_value">the value to set in the element.</param> /// <param name="the_left">the left child node.</param> /// <param name="the_right">the right child node.</param> public BinaryNode(T the_value, BinaryNode <T> the_left, BinaryNode <T> the_right) : this(the_value) { left = the_left; right = the_right; }