FlatEnumerator<TKey,TValue>.Traverse method
Defines a traversal function for shallow copying the elements from the BinarySearchTree into the passed in ArrayList.
protected abstract 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 FlatEnumerator<TKey,TValue>
- namespace TheCodingMonkey.Collections.BST