Returns an enumerator that iterates through a collection.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IEnumerator GetEnumerator()
Public Function GetEnumerator As IEnumerator
public: virtual IEnumerator^ GetEnumerator() sealed
Return Value
An IEnumerator object that can be used to iterate through the collection.