/// <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; }
/// <summary> /// Removes all objects from index. /// </summary> public void Clear() { _root.ClearChildren(); }