public void Clear() { //Debug.WriteLine("Item has " + this.branches.Count + " branches."); for (int i = this.branches.Count - 1; i >= 0; i--) { DataTreeBranch b = this.branches[i]; b.Clear(); this.branches.Remove(b); } this.branches.Clear(); leaves.Clear(); }
public void Clear() { trunk.Clear(); }