◆ AddChild() [2/2]

bool AddChild ( Node  parent,
data 
)
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.
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.