Fog Creek Software
Discussion Board




from c# to vb.net

I've been using c# for while now and I may get a gig using vb.net because my current contract is running out. I don't like the idea of using vb.net but should I really care? After all, it's all the same underneath.

I think I already know the answer to this as this has been covered before (ad nauseum) but because it may now affect *me*,  I'd like to ask again :)

Steve
Wednesday, January 07, 2004

no, you should not care. in the end, it is all just typing.

|
Wednesday, January 07, 2004

VB.NET is a more verbose language, but the VS.NET editor takes care of most of the keystrokes that you'd otherwise have to type.

Casts are a bit more annoying in VB.NET than C#.

Hooking up event handlers is much easier in VB.NET than it is in C#.

Go out and get yourself a copy of this:

http://www.oreilly.com/catalog/csharpvbpr/index.html

It's only $15, and provides a "rosetta stone" to make you bilingual. Well worth it.

And don't sweat the VB; you're not dealing with the crippled old VB 6, and VB.NET can express whatever algorithm or data structure you might need.

Chris Tavares
Wednesday, January 07, 2004

Agree completely with | and Chris -- there aren't any consequential differences between the two languages.  Here's a whitepaper from Microsoft that can be used as a translation "cheat sheet":

"Differences Between Visual Basic .NET and Visual C# .NET"
http://support.microsoft.com/?kbid=308470

Robert Jacobson
Wednesday, January 07, 2004

plus you can write in C# then disassemble into vb.net

mb
Wednesday, January 07, 2004

*  Recent Topics

*  Fog Creek Home