Hello and welcome, In a previous post, we had a look at enumerators and how .NET works with the foreach loop, we saw how enumerators are actually objects that transition from one state to another by using the MoveNext method and the Current property. We know that if we want to make a custom enumerator … Continue reading IEnumerable and state machines