Show / Hide Table of Contents

Method TreeBase-1.AddChild


Overload

Adds node n to this node as a child.

public void AddChild(T n, bool first = false)
Parameters
n  (T)
first  (bool)

Insert n as the first child node. If false (default), appends to the end.

Exceptions
ArgumentException

n is null, or has parent (need to TreeBase<T>.Remove at first), or is this node, or an ancestor of this node.