Home
C# / C Sharp
2D Graphics
Class Interface
Collections Data Structure
Components
Data Types
Database ADO.net
Date Time
Design Patterns
Development Class
Event
File Stream
Generics
GUI Windows Form
Internationalization I18N
Language Basics
LINQ
Network
Office
Reflection
Regular Expressions
Security
Services Event
Thread
Web Services
Windows
Windows Presentation Foundation
XML
XML LINQ
Switch « Language Basics « C# / C Sharp
C# / C Sharp
Language Basics
Switch
1.
Switch for int type
2.
Simulate a conveyor belt
3.
Demonstrate the switch
4.
Use a char to control the switch
5.
Empty cases can fall through
6.
Illustrates the use of the switch statement
7.
Illustrates the use of the switch statement to compare string values
8.
Switch statement containing a branch with no statements: causes a 'fall-through' to the next branch
9.
Switch Values
10.
Switch With Default Values
11.
Switch Values Fall Through
12.
Switch based console menu