Switch

by Sam Allen | RSS

The switch statement in the C# language is a control structure that has various optimizations in the lower-level IL, from jump tables to Dictionary structures for string switch. It is important for code tuning.

Case Example
Goto Switch Usage
If Versus Switch Performance
Nested Switch Statement
String Switch Examples
Switch Char, Conditional Character Test
Switch Enum and Int
Validate Characters in String

Dot Net Perls | Search
Featured | 7-Zip Command-Line Examples | DataGridView Tips and Secrets | Dictionary Examples, Keys and Values | List Examples | Split String Examples
C# | SaveFileDialog Tutorial | IntegralHeight Property (Windows Forms) | Array.FindIndex Method | File.Replace Method
© 2010 Sam Allen. All rights reserved.
Dot Net Perls | Sam Allen