InOrderFlatEnumerator<TKey,TValue>.Traverse method
Defines a traversal function for shallow copying the elements from the BinarySearchTree into the passed in Collection.
protected override void Traverse(Node<TKey, TValue> current,
ICollection<KeyValuePair<TKey, TValue>> contents)
| parameter | description |
|---|---|
| current | Node to Traverse |
| contents | ArrayList to contain the re-ordered elements. |
See Also
- class Node<TKey,TValue>
- class InOrderFlatEnumerator<TKey,TValue>
- namespace TheCodingMonkey.Collections.BST