A Beginner’s Tutorial on Implementing IEnumerable Interface and Understanding yield Keyword

In this article we will discuss about the IEnumerable interface. We will discuss how IEnumerableinterface facilitate the use of foreachstatement to iterate through a set of data. We will then look how to implement our own collections that implement IEnumerableinterface. The use of yield keyword and Enumerating generic collections will also be discussed in this article. Continue reading