Click here to Skip to main content
15,886,664 members
Articles / Mobile Apps

A Very Efficient Generic Recursive Iterator using Yield Return

Rate me:
Please Sign up or sign in to vote.
4.00/5 (20 votes)
1 Jun 2007CPOL3 min read 52.5K   39  
This article demonstrates techniques on how to optimise the common programming task of recursively iterating through a container control using generics and yield return.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

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


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Ever since my dad bought me a Commodore 64 (some years back) I have been hooked to programming. For most of my working career I have worked intensely with C# (WinForms and WPF) but a few years back I started to investigate browser technologies and frameworks which are much more powerful than I thought at first!

I studied International Marketing but found the IT sector much more challenging. So straight from uni I took on some IT contract work in London in a buoyant market and never looked back.

If you wish to contact me then please do so on heeremans.marcel@gmail.com

Comments and Discussions