|
-
Dec 13th, 2004, 01:55 AM
#1
Select Case
What is the equivalent of Select Case in C#?
Is there any reference where I can see the equivalents between vb.net and c#?
-
Dec 13th, 2004, 03:58 AM
#2
Re: Select Case
Code:
switch(num)
{
case 1:
//dostuff
break;
default:
//dostuff;
}
I'm not sure where you'd find comparitive examples, but I think msdn gives it's code samples in both languages.
-
Dec 13th, 2004, 04:48 AM
#3
-
Dec 13th, 2004, 11:39 AM
#4
Banned
Re: Select Case
 Originally Posted by mendhak
Thanks, works great.
You no good for nothing incompetent peon you:
http://developerfusion.com/utilities...btocsharp.aspx
-
Dec 14th, 2004, 04:36 AM
#5
Re: Select Case
This doesn't tell me how to use the line continuation character... in VB.NET, we
can _
continue a line _
like _
this.
-
Dec 14th, 2004, 06:01 AM
#6
Re: Select Case
In vb seperate lines of code are indicated by a new line in c# it's a semi-colon.
vb:
this _
is _
a continuation
c#
this
is
a continuation;
-
Dec 15th, 2004, 01:24 AM
#7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|