public BinaryVisualNode( string text, string nodeType, VisualNode leftChild, VisualNode rightChild, VisualTreeSettings settings ) : base(text, nodeType, settings) { LeftChild = leftChild ?? throw new ArgumentNullException(nameof(leftChild)); RightChild = rightChild ?? throw new ArgumentNullException(nameof(rightChild)); LeftChild.Parent = this; RightChild.Parent = this; }
public UnaryVisualNode(string text, string nodeType, VisualNode child, VisualTreeSettings settings) : base(text, nodeType, settings) { Child = child ?? throw new ArgumentNullException(nameof(child)); Child.Parent = this; }