public interface IEnumerable
mscorlib
BCL
Implemented by classes that support a simple iteration over instances of the collection.
[Note: IEnumerable contains the System.Collections.IEnumerable.GetEnumerator method. The consumer of an object should call this method to obtain an enumerator for simple iteration over an instance of a collection.Implement this interface to support the
foreach
semantics of C#.]
System.Collections Namespace
IEnumerable Methods
IEnumerator GetEnumerator();
Returns a IEnumerator that can be used for simple iteration over a collection.
A IEnumerator that can be used for simple iteration over a collection.
[Behaviors: As described above.]
[Usage: For a detailed description regarding the use of an enumerator, see IEnumerator.]
System.Collections.IEnumerable Interface, System.Collections Namespace