How can I use more than one constant for a switch case 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/15 18:22 UTC
Read the original article Hit count: 192

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#