◆ AddChild() [1/2]

bool AddChild ( Node  parent,
data,
out Node  newNode 
)
Parameters
parentThe newly instantiated node will be added as a child of this parent node. You may specify null here, only if a root node does not already exist.
dataThis is the data that will be stored in the new node.
newNodeIf the Child was successfully added to the parent node, this value will contain the newly added node.
Returns
This function will fail, and return false, if a root exists already, and the provided parent is null, or data is null. Otherwise returns true.

References SerializableTreeBase< T >.Node.openForInspection, and SerializableTreeBase< T >.root.