C# switch case not compiles when we do not write break in case 1 why is it
not working in C# instead of this why we should we use to compile...
switch (x)
{
case 1:
MessageBox.Show("You enter 1 ");
case 2:
MessageBox.Show("you enter 2");
break;
}
No comments:
Post a Comment