C# Switch Case

Posts filed under C# Switch Case

C# Switch Case Statement

Filed in C#Tags: , , ,

As we know that we use If-Else statement when we have to perform any conditional bases operation. When the condition become true we execute the If block statements and when the condition is false we execute Else block. But sometimes there are a group of conditions where we have to perform one from the group. In this case we use Switch-Case statements. A Switch statement execute the case condition corresponding to the value of expression. First we will use the syntax of using Switch-Case Example. and Then we will use an example.

Read the rest of this entry »