IEnumerable is an interface that has 1 method called GetEnumerator. The MSDN documentation describes the GetEnumerator method as “Exposes the enumerator, which supports a simple iteration over a collection.”… It then goes on to say “IEnumerable must be implemented to support the ForEach semantics of Microsoft Visual Basic. COM classes that allow enumerators also implement this interface”.

Advertisements