get_enumerator method

get_enumerator

Gets an enumerator that iterates rows through this collection

Returns

The row enumerator

def get_enumerator(self, reversed, sync):
    ...
ParameterTypeDescription
reversedboolwhether enumerate rows in reversed order
syncboolwhether the returned enumerator should check the modification of row collection
and keep synchronized with it.

Remarks

If the row collection will be modified(by operations that may cause new Row be instantiated or existing Row be removed) during the traversal with the enumerator, synchronized enumerator should be used instead of normal enumerator so that the traversal can continue from the position just after the one has been traversed by the last MoveNext(). However, together with the advantage that no element be skipped or traversed repeatedly, the disadvantage for synchronized enumerator is that the performance will be degraded a bit when comparing with normal enumerator.

See Also