Click here to Skip to main content
15,892,927 members
Articles / Desktop Programming / Windows Forms

Retrieving TreeView nodes as IEnumerable

Rate me:
Please Sign up or sign in to vote.
4.89/5 (2 votes)
4 Feb 2012CPOL 8.6K  
By using a LinkedList, you can even mimic true recursive behavior without using recursive calls; the order will be "0,3,9,10,4,1,5,11,12,2,6,7,8", then:public static IEnumerable GetRecursive(this IEnumerable source, Func> subSelector){ var...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions