This doesnt build:
string i = "";
switch (i)
{
case "0":
break;
case "1":
break;
case "2":
break;
case "3":
break;
case "4":
break;
case "5":
break;
default:
break;
}
But this does:
string i = "";
switch (i)
{
case "0":
break;
case "1":
break;
case "2":
break;
case "3":
break;
case "4":
break;
default:
break;
}
The error is of the "missing plug" type. Seems only to happen when you are using a string in the switch statement and not integer for example.