Community

Implement a method returning an IEnumerable (Iterators in C#)

(Damir Arh) Developers do not need to implement the IEnumerable and IEnumerator interfaces to return an IEnumerable. They can avoid writing all of that code by taking advantage of support for iterators in C#. This tutorial shows how.