Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




What’s different about switch statements in C#

No fall-throughs allowed. Unlike the C++ switch statement, C# does not support an explicit fall through from one case label to another. If you want, you can use goto a switch-case, or goto default.

case 1:
cost += 25;
break;
case 2:
cost += 25;
goto case 1;

Share this article   |    Print    |    Article read by 2006 times
Author:
Guest
Guest user is that user who have done some activity on website without login. Activity contains commenting on any article, uploading an image on website etc.
Related Articles:
Related Interview Questions: