March 2011 - Posts

1
Comments

Recursively Traversing IEnumerable<T> by marianor

Most of the samples I saw about traversing an IEnumerable<T> use recursion, this can cause some overload in the stack depending on the hierarchy depth. The version I propose use a Queue<T> to achieve the same; note that this is I a common...
Filed under:
More Posts