Skip to main content

current

Short summary

This property returns the current element which the iterator points to.

Attention: If current is used multiple times between two iterate calls, current is only guarenteed to return an object that is actually in the list fo rthe first call to current that happens immediatly after the first iteration call.

Example:

WHILE(iterator.moveNext())DO
foo := iterator.current.hashCode;
bar := iterator.current.name;
END_WHILE

Code

Declaration

PROPERTY current :CNM_AbstractObject.IObject