Library tutorials & articles tagged with iterators
Page 1 of 1
-
Iterator blocks in C# 2: auto-generated state machines
by Jon Skeet
Ever wondered how the magic "yield" statement works? Jon Skeet digs into the inner workings of C# 2.0 and how this innocuous statement gets you a whole load of "free" generated code for your iterators.
-
Iterators, iterator blocks and data pipelines in C#
by Jon Skeet
With the arrival of LINQ to Objects, understanding how iterators work has become more important than ever before. Learn how to implement them in C# 2 (or 3), and how these apply to the fundamental aspects of LINQ to Objects.