Mono Class Library: System.Collections Namespace

System.Collections.IEnumerable

Implemented by classes that support a simple iteration over instances of the collection. [Edit]

See Also: IEnumerable Members

[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("496B0ABE-CDEE-11d3-88E8-00902754C43A")]
public interface IEnumerable

Remarks

Note:

IEnumerable contains the 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#.

[Edit]

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0