Pipelines Using Iterators, Lambda Expressions and Extension Methods in C# 3.0
Inspired by Pipelines Using Fibers in Ruby 1.9, I set to explore what could be done with C# 3.0 in the same area. I'll also follow that article's overall structure.
Building a pipeline is all about chaining together simple reusable commands so that the output of one is the input of the next. Same principle PowerShell uses, as well most other command-line shells.
Reusing the commands allows you to focus on simpler primitives and achieve more complicated tasks via their composition through the pipeline....