Select from following answers:- while

- do-while
- foreach
- All Above
You can use while (o.HasNext) { var i = o.Read(); } to process the items.
When o.HasNext returns false, you automatically end the loop
Show Correct Answer
Source: microsoft book (c#) | |
Alert Moderator