'Declaration
Public Function GetEnumerator() As IEnumerator
'Usage
Dim instance As VideoFormats
Dim value As IEnumerator
value = instance.GetEnumerator()
Return Value
System.Collections.IEnumerator
Remarks
The foreach statement of the C# language (for each in C++, For Each in Visual Basic) hides the complexity of the enumerators. 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.