More Fun with C# Iterators and Generators
- by James Michael Hare
In my last post, I talked quite a bit about iterators and how they can be really powerful tools for filtering a list of items down to a subset of items. This had both pros and cons over returning a full collection, which, in summary, were:
Pros:
If traversal is only partial, does not have to visit rest of collection.
If…