Explain collection in .NET and describe how to enumerate through the members of a collection.There are various collection types in .NET which are used for manipulation of data. Collections are available in System.Collections namespace
IEnumerator is the base interface for all enumerators. Enumerators can only read the data from the data collections but not modify them. Reset and MoveNext are the methods used with enumerators which bring it back to the first position and move it to the next element position respectively. Current returns the current object.