Click here to Skip to main content
15,886,689 members
Articles / Programming Languages / C# 4.0

Pick Your Enumerator & Me.Understand Yield and IEnumerable (C#)

Rate me:
Please Sign up or sign in to vote.
4.63/5 (16 votes)
21 Apr 2013CPOL18 min read 58.2K   410   25  
Using multiple enumerators and implementing IEnumerable with Yield or IEnumerator.

Views

Daily Counts

Downloads

Weekly Counts

License

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


Written By
Engineer
France France
A hobbyist begin-again-er!

Spent a few years longer ago than I care to remember with BBC Basic, a couple of years with Delphi about 10-15 years ago with a smattering af MS Access applications along the way. Dropped out of it completely except for the occasional Excel macro.

Finally picked up the baton again with VB.Net in VS2010 and now VS 2012and have been playing around quite a bit with a few odds and sodds, learning much as I go - and long may it continue.

I don't work even close to the IT industry and probably never will, but I do enjoy it as a hobby.

Comments and Discussions