Lecture overview -- Keyboard shortcut: 'u'  Previous page: Control Structures for Iteration -- Keyboard shortcut: 'p'  Next page: Arrays -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 33 : 43
Object-oriented Programming in C#
Introduction to C#
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