示例#1
0
        public void Clear()
        {
            if (nodes != null)
            {
                nodes.Clear();
                nodes = null;
            }

            if (topLeft != null)
            {
                topLeft.Clear();
                topLeft = null;
            }

            if (topRight != null)
            {
                topRight.Clear();
                topRight = null;
            }

            if (bottomLeft != null)
            {
                bottomLeft.Clear();
                bottomLeft = null;
            }

            if (bottomRight != null)
            {
                bottomRight.Clear();
                bottomRight = null;
            }

            _depth = 0;
        }
示例#2
0
 public void Clear()
 {
     _root.Clear();
 }