Introduction to C#
- slide 33 : 43
Control structures for iteration
While
Very similar in C# and VB
C#: Does also support a
do
...
while
Do Loop
VB: Elegant, powerful, and symmetric.
No direct counterpart in C#
For
C#: The for loop is very powerful.
VB: Similar to classical for loop from Algol and Pascal