Thought I would share a few tips with you guys on C# to VB .NET conversion. You will note that alot of examples are in C# so knowing these will help you when looking at C# code to convert it to VB .NET
First subroutines
If you see something like this
Code:
public void Hello()
{
}
that is a subroutine
just change it to
Code:
Public Sub Hello()
End Sub
variables
if you see something like this
that is how you declare variables. The first word is the data type, and the second is the variable name
so in VB
the C# decalre can also begin with public/private/friend like in VB.
variables are assigned the same way
lala = "hello";
if you see using, that is the same as Imports in VB
if statements are pretty closely the same, just when you see
if(whatever)
{
}
the {} denotes a block if so you would change that to
Code:
If whatever Then
End If
foreach is the same as For Each basically
functions
if you see this
Code:
public string Hello()
{
}
that is a function that returns a string. Pretty easy to guess what that look like in VB.
there are of course some other thigns here and there, but this is enough info to help you scan through C# code to get some needed code for your VB .NET app most of the time