also can say:

case 3:
case 4:
case 5:
// do something
break;


--- In [email protected], Ryan Olshan 
<[EMAIL PROTECTED]> wrote:
>
> Try the following:
> 
>       switch(myInt32){
>             case 1:
>             //do something
>             break;
> 
>             case 2:
>             //do something
>             break;
> 
>             case 3 | 4 | 5:
>             //do something
>             break;
> 
>             case default:
>             //do something
>             break;
>       }
> 
> 
> 
> On 12/20/05, Falls, Travis D (HTSC, CASD) <[EMAIL PROTECTED]>
> wrote:
> >
> > I have a switch case in a C# application and want to have one 
case that
> > actually is for a few different "types"  for example if I was 
switching on
> > an Int32 I would have:
> >
> >       switch(myInt32){
> >             case 1:
> >             //do something
> >             break;
> >
> >             case 2:
> >             //do something
> >             break;
> >
> >             case 3,4,5:
> >             //do something
> >             break;
> >
> >             case default:
> >             //do something
> >             break;
> >       }
> >
> > Is their a way to concatenate items like 3, 4, and 5?
> >
> > Travis D. Falls | Consultant   RAFT.Net   IT | 860.547.4070 |
> > [EMAIL PROTECTED]
> >
> >
> >
> > 
*********************************************************************
****
> > This communication, including attachments, is
> > for the exclusive use of addressee and may contain proprietary,
> > confidential and/or privileged information.  If you are not the 
intended
> > recipient, any use, copying, disclosure, dissemination or 
distribution is
> > strictly prohibited.  If you are not the intended recipient, 
please notify
> > the sender immediately by return e-mail, delete this 
communication and
> > destroy all copies.
> > 
*********************************************************************
****
> >
> >
> >
> > SPONSORED LINKS
> >   Basic programming language<http://groups.yahoo.com/gads?
t=ms&k=Basic+programming+language&w1=Basic+programming+language&w2=Co
mputer+programming+languages&w3=Programming+languages&w4=Java+program
ming+language&c=4&s=126&.sig=bnac3LCZpttb3c9FvbVU-A> Computer
> > programming languages<http://groups.yahoo.com/gads?
t=ms&k=Computer+programming+languages&w1=Basic+programming+language&w
2=Computer+programming+languages&w3=Programming+languages&w4=Java+pro
gramming+language&c=4&s=126&.sig=1Czd2hKCO9_u4KVZQperFQ> Programming
> > languages<http://groups.yahoo.com/gads?
t=ms&k=Programming+languages&w1=Basic+programming+language&w2=Compute
r+programming+languages&w3=Programming+languages&w4=Java+programming+
language&c=4&s=126&.sig=TyHGCjod4YOKITrSq1xccQ>  Java
> > programming language<http://groups.yahoo.com/gads?
t=ms&k=Java+programming+language&w1=Basic+programming+language&w2=Com
puter+programming+languages&w3=Programming+languages&w4=Java+programm
ing+language&c=4&s=126&.sig=PZAexF9LyXpKb3HDJSlB1g>
> >  ------------------------------
> > YAHOO! GROUPS LINKS
> >
> >
> >    -  Visit your 
group "AspNetAnyQuestionIsOk<http://groups.yahoo.com/group/AspNetAnyQ
uestionIsOk>"
> >    on the web.
> >
> >    -  To unsubscribe from this group, send an email to:
> >     AspNetAnyQuestionIsOk-
[EMAIL PROTECTED]<AspNetAnyQuestionIsOk-
[EMAIL PROTECTED]>
> >
> >    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >    Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> >  ------------------------------
> >
> 
> 
> 
> --
> Thank you,
> Ryan Olshan
>      Website - http://www.StrongTypes.com/
>      <Rolog> - http://blogs.dirteam.com/blogs/ryan/
> 
> 
> [Non-text portions of this message have been removed]
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to