VS2003 : c# case switch statement...
Posted
by dotnet-practitioner
on Stack Overflow
See other posts from Stack Overflow
or by dotnet-practitioner
Published on 2010-03-25T18:18:58Z
Indexed on
2010/03/25
18:23 UTC
Read the original article
Hit count: 497
For ScoreOption, I expect to get the following input "A", "B", and T_(state) for example T_NY
so..
how can I write case switch statement for third option T_(state)
switch(ScoreOption.ToUpper().Trim())
{
case "A":
....
break;
case "B":
....
break;
case T_????
....
break;
}
I might as well write if-else statement??
© Stack Overflow or respective owner