tags:

views:

190

answers:

6

I have moved from C# to 9-5pm VB.NET

Any tricks i should know? Where does VB.NET differ the most apart from syntax?

Where have namespaces gone?

[Note: just found http://converter.telerik.com/ brilliant]

Cheers John

+1  A: 

Have you looked at this answer?: http://stackoverflow.com/questions/11632/what-are-the-most-important-functional-differences-between-c-and-vbnet

Mitch Wheat
brilliant. i could have searched for that. and my title was poor.lazy. thanks mitch. this really helps as well http://converter.telerik.com/
solrev
+2  A: 

the telerik converter craps out on me on some of the newer syntax. I think this one is much better, albeit not as pretty.

http://www.developerfusion.com/tools/convert/csharp-to-vb/

Kyle West
I used the developer fusion convertor recently and it did a reasonable job.
Mitch Wheat
+1  A: 

See these two question:

Hidden Features of VB.Net
Most wanted Features for visual basic 10

Joel Coehoorn
+1  A: 

Have a look at this:

VB .NET and C# comparison

It's a little old at this point (I think it's .NET 1.1), but it's still useful for comparing syntax.

Kyralessa
A: 

take a look at vb.net in detail

http://vb.net-informations.com

bolton.

bolton
A: 

This might also help as for lambda expressions in VBNET:

http://stackoverflow.com/questions/2201511/what-would-be-the-equivalent-vb-net-code-for-this-c-fluentnhibernate-component-m

As you will notice, the keyword Function is used with VBNET as for an equivalency of a lambda expression that returns a value. For lambda expression that don't generate any return value, you have to use a helper method (a Sub) and use its pointer address with the keyword "AddressOf". This way, you will also be allowed to use multiline subs instead of single line function. The same is applicable when using functions. If your "function" lambda expression requires you to code in multiline, you will need to use AddressOf FunctionName to be able to perform multiline lamda functions.

Will Marcouiller