This is an interface that is implemented by an enumerable class. The whole collection in c# can implement an IEnumerable interface. It returns IEnumerator. It does not change as per the access specifiers used in the code.