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; }
public void Clear() { _root.Clear(); }