Alessio

Alessio

  • NA
  • 5
  • 0

switch same code for 2 case

Jun 2 2009 8:22 AM
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)