Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="root"></param>
        internal void SetRootLink(TreeRoot <T> root)
        {
            // assume sub trees are consistent
            if (_root == root)
            {
                return;
            }

            _root = root;
            if (HasChildren)
            {
                foreach (T n in Nodes)
                {
                    n.SetRootLink(root);
                }
            }
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 public TreeNode()
 {
     _root = new TreeRoot <T>(this);
 }