1
Answer

switch same code for 2 case

Alessio

Alessio

15y
4.3k
1
i've made a switch statement and i have 2 case with the same code ... for example int vint=0; switch(vint) { case 1: //Code for 1 break; case 2: //same code of 1 break; In vb.net i can write case 1 to 2 ... , in C# is possible don't write the same code if 2 or more case do the same thing ?? Thanks ...
Answers (1)