Xpode.com        Click here to Print this article.

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;






Contributed by:
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.

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=236

Click here to go on website