Per Jespersen

Per Jespersen

  • NA
  • 23
  • 35.2k

Multible cases

Mar 4 2011 3:45 PM

I know this is possible in Visual Basic. But is something like that possible in c#?

string a = "two"

switch(a)
{
        case "one", "two":
        DoSomeThing();
        break;
}

Answers (6)