Walking a tree with yield return and recursion(trycatchfail.com)
submitted by
Matt_TCF(946) 3 years, 7 months ago
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+.
|category: Tips & Tricks
|Views: 107
tags:
Tips another
Everyones tags:
Your Tags: