GetEnumerator Method

Summary
Returns an enumerator that iterates through the collection.
Syntax
C#
VB
C++
public IEnumerator GetEnumerator() 
Public Function GetEnumerator() As IEnumerator 
public: 
IEnumerator^ GetEnumerator();  

Return Value

A System.Collections.IEnumerator that iterates through the collection

Remarks

The foreach statement of the C# language (for each in C++, For Each in VB) 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.

Requirements

Target Platforms

See Also

Reference

Renderers Class

Renderers Members

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MediaFoundation Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.