how to check for multiple switch statement in c#

Posted by vakas on Stack Overflow See other posts from Stack Overflow or by vakas
Published on 2010-04-30T14:32:05Z Indexed on 2010/04/30 14:37 UTC
Read the original article Hit count: 166

Filed under:

i need to check more than one statement in switch statement to evalute like

 int a=5; 
 switch(a) 
 { 
     case 4,5:
         console.write("its from 4 to 5);
         break; 
 }

© Stack Overflow or respective owner

Related posts about c#