Walking a tree with yield return and recursion (trycatchfail.com)
submitted by
Matt_TCF(390) 1 year, 3 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: 40
tags:
Tips another
Everyones tags:
Your Tags: