0
Is the case - - - a variable
When the Value is a string will it be.. CASE VARIABLE :
1 ответ
+ 7
string s = “some text";
switch(s)
{
case "is it this":
//do something
break;
case "some text":
//do something
break;
default:
//do something
break;
}
When the Value is a string will it be.. CASE VARIABLE :