System.Collections.Generic.List<T>.GetEnumerator Method
Returns an enumerator, in index order, that can be used to iterate over the list.

Syntax

public List<T>.Enumerator GetEnumerator ()

Returns

An enumerator for the list.

Remarks

Usage
For a detailed description regarding the use of an enumerator, see IEnumerator<T>.

Requirements

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0