Returns an enumerator that iterates through the collection.
public IEnumerator GetEnumerator()
Public Function GetEnumerator() As IEnumerator
public:
IEnumerator^ GetEnumerator();
System.Collections.IEnumerator
The foreach statement of the C# language (for each in C++, For Each in VB), hides the complexity of the enumerators. Therefore, it is better to use foreach, instead of directly manipulating the enumerator. Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET