Hi,
I'm trying to do a very easy thing in SWITCH statment in C# but for some
reasons I can't do it (I'm getting errors messages,probab ly I'm missing
something)
What I want to do is this :
int n = aObject.Functio nOfIntergerType ;
switch (n)
{
case 1,2 : dothis; // <- how can I group multiple values in one case
?????
case 3 :dotThat;
}
Thank You.
I'm trying to do a very easy thing in SWITCH statment in C# but for some
reasons I can't do it (I'm getting errors messages,probab ly I'm missing
something)
What I want to do is this :
int n = aObject.Functio nOfIntergerType ;
switch (n)
{
case 1,2 : dothis; // <- how can I group multiple values in one case
?????
case 3 :dotThat;
}
Thank You.
Comment