IEnumerator and IEnumerable Interface
In simple term collection in C# is a way to store objects. We use System.Collection namespace to work with collection.
IEnumerator and IEnumerable
In collection we are able to access the each element using Enumerator. There is an Interface IEnumerator which contains the following method and properties:-
public interface IEnumerator