Using C# 2.0 Iterators
Developer.com has a great article on how to use Interators in C# 2.0 to reduce the amount of code you need to write to implement a class with IEnumerable. It use generics as well to make them type-specific. It's a good example of how C# 2.0 is trying to simplify coding tasks for developers.
Comments
- Anonymous
January 10, 2006
Here is idea of using iterators for asynchronous programming simplify:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=180659&SiteID=1
I don't agree iterators are valuable for collections. They are cool, but how often do you write IEnumerator or IEnumerable implementations?