AVLTree.GetValues Method (console safe)
Obtains all values in the tree in a a order that is sorted by keys, either forwards or backwards.
Parameters
- container
- A instance of a class that implements the IObjectAddable interface. This class will receive the keys.
- backwards
- True if the the values should come by backwards sorted keys, false if they should be sorted by normally sorted keys.
Remarks
The values can be put in any container or class that implements the IObjectAddable interface.
Because by nature AVL trees are sorted then this function requires zero effort to sort.
See Also
AVLTree Class