Returns an enumerator that iterates through the collection.
| C# | Visual Basic | Visual C++ |
public IEnumerator<T> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of T)
public: virtual IEnumerator<T>^ GetEnumerator() sealed
A IEnumerator<(Of <(<'T>)>)> that can be used to iterate through the collection.