PostOrderFlatEnumerator<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 | ICollection to contain the re-ordered elements. |
See Also
- class Node<TKey,TValue>
- class PostOrderFlatEnumerator<TKey,TValue>
- namespace TheCodingMonkey.Collections.BST