I am manually converting Java to C# and have the following code:
for (Iterator<SGroup> theSGroupIterator = SGroup.getSGroupIterator(); theSGroupIterator
.hasNext();) {
SGroup nextSGroup = theSGroupIterator.next();
}
Is there an equivalent of Iterator in C# or is there a better C# idiom?