Introduction to C#
- slide 31 : 43
Control structures for Selection
If-then-else
Similar in the two languages
Case
C#: Efficient selection of a single case - via underlying jumping
VB: Sequential test of cases - the first matching case is executed
VB: Select Case approaches the expressive power of an if-then-elseif-else chain
Case "fall through" is disallowed in both languages