Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats different about switch statements in C#?

C# different statements Switch
0
Posted

Whats different about switch statements in C#?

0

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.

0

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; (ADO.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.