Check out example codes for "swith c#". It will help you in understanding the concepts better.
Code Example 1
switch(expression)
{
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
break;
}
Learn ReactJs, React Native from akashmittal.com