Using the Yield Keyword for Elegant Code The yield C# keyword was added in C# 2.0 in order to simplify implementation of the “Iterator Pattern” in Typed C# objects. The “Gang of Four” in their Design Patterns book in the 90’s defined the...
Read more