Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

ListBase<(Of <(<'T>)>)>..::..GetEnumerator Method

Enumerates all of the items in the list, in order. The item at index 0 is enumerated first, then the item at index 1, and so on.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public IEnumerator<T> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of T)
public:
IEnumerator<T>^ GetEnumerator()

Return Value

An IEnumerator<T> that enumerates all the items in the list.

Remarks


The enumerator does not check for changes made to the structure of the list. Thus, changes to the list during enumeration may cause incorrect enumeration or out of range exceptions. Consider overriding this method and adding checks for structural changes.