The Progress.Collections.IIterator<T> interface provides common functionality for classes to traverse a collection of objects.

Public Properties

Current property (Iterator)

Public Methods

MoveNext( ) method (Iterator) Reset( ) method (Iterator)

Example

The following example uses IIterator<T> to traverse a List<T> collection of objects.

using Progress.Collections.*.
var List<Person> myCollection = new List<Person>().

var IIterator<Person> myIterator.
myIterator = myCollection:GetIterator().

repeat while myIterator:MoveNext():
    message myIterator:Current:ToString().
end.

See also

<T> Generic type reference