What is the equivalent of Select Case in C#?
Is there any reference where I can see the equivalents between vb.net and c#?
Printable View
What is the equivalent of Select Case in C#?
Is there any reference where I can see the equivalents between vb.net and c#?
I'm not sure where you'd find comparitive examples, but I think msdn gives it's code samples in both languages.Code:switch(num)
{
case 1:
//dostuff
break;
default:
//dostuff;
}
Thanks, works great.
You no good for nothing incompetent peon you:Quote:
Originally Posted by mendhak
http://developerfusion.com/utilities...btocsharp.aspx
This doesn't tell me how to use the line continuation character... in VB.NET, we
can _
continue a line _
like _
this.
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;
Thank
you;