示例#1
0
            /// <summary>
            /// Removes all child nodes.
            /// </summary>
            internal void ClearChildren()
            {
                if (_child0 != null && _child1 != null)
                {
                    _child0.ClearChildren();
                    _child1.ClearChildren();
                    _parent._nodeCount -= 2;
                }

                _child0 = null;
                _child1 = null;
            }
示例#2
0
 /// <summary>
 /// Removes all objects from index.
 /// </summary>
 public void Clear()
 {
     _root.ClearChildren();
 }