programmium

From Isham Mohamed


generators

  • JS Inspired C# Generator

    JS Generators are pretty cool, however C# Iterators are sometimes boring. So I thought to implement two extension methods to mock the JS generator behaviour in C#. With this in place, the below code can be implemented. Due to the fact that the enumerator needs to be disposed, the using statement is used. Not sure… Continue reading