how to apply switch case in c# with is operator code example
Example: switch c#
switch(expression)
{
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
break;
}
switch(expression)
{
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
break;
}