Iterators, iterator blocks, data pipelines and LINQ

LINQ to Objects is based on iterators. These have always been part of .NET, and indeed are the basis of the foreach statement - but with LINQ to Objects they're more important than ever before. In this article Jon explores what iterators are about, how to implement them in C# 2 (or 3), and then the fundamental aspects of LINQ to Objects. Jon's new book, "C# In Depth" will be awarded to our top two Contest winners in March 2008.

By Jon Skeet   Popularity  (4611 Views)