Interface IEnumerable
Exposes an enumerator, which supports a simple iteration over a non-generic collection.
Namespace: System.Collections
Assembly: mscorlib.dll
Syntax
public interface IEnumerable
Methods
| Improve this Doc View SourceGetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator | An IEnumerator object that can be used to iterate through the collection. |