예제 #1
0
파일: MgTreeBase.cs 프로젝트: rinavin/RCJS
            /// <summary>
            ///   delete  subtree starting with this node
            /// </summary>
            /// <returns> returns next sibling</returns>
            internal NodeBase deleteSubTree()
            {
                while (FirstChild != null)
                {
                    FirstChild.deleteSiblingsWithSubtree();
                }
                NodeBase next = NextSibling;

                delete();
                return(next);
            }