iterator

iterator() method

Returns an enumerator that iterates through the collection.

Returns