How can I use more than one constant for a switch case in C#?

Posted by KentZhou on Stack Overflow See other posts from Stack Overflow or by KentZhou
Published on 2010-06-15T18:17:21Z Indexed on 2010/06/16 17:22 UTC
Read the original article Hit count: 227

Filed under:

How can I use more than one constant for a switch case C#? Conceptually, I'm looking for something like this:

switch(n)
{
   case 1,2,3:     //????
   case 4:
   default:
}

© Stack Overflow or respective owner

Related posts about c#