C# Switch statement

A switch statement acts as an if-else-if ladder. It can have an optional default case which is specified at the end of the switch statement. The default case will be executed if none of the cases provided is true.