0
kicks
Walking a tree with yield return and recursion
Iterating through the items in a tree can be a chore, but thanks to the yield return statement, it is quite easy to build an IEnumerator for a tree-type data structure in .NET 2.0+.