IEnumerable to implement a classe for foreach
If you want to implement a class that can be used with foreach you need to implement an IEnumerable. See Using IEnumerator and IEnumerable in the .NET Framework - The Code Project - C# Programming
Etiquetas: .net