Have a background in C#, and starting to write some Visual Basic? (Lisa Feigenbaum)

Have a background in C#, and starting to write some Visual Basic? (Lisa Feigenbaum)

  • Comments 7

Maybe you just started a job at a company whose development is in VB. Maybe you're working with XML, or Office, and heard that VB would be the best language for this project. Or maybe you're just switching over, to understand what millions of developers around the world love about VB! :) Whatever your reason may be, this post is for you.

You'll find that there are a lot of similarities between Visual C# and Visual Basic. Afterall we're both built on top of the same Common Language Runtime! However once you get into the details, you'll find that there are quite a few differences too. Fortunately, VB MVP Kathleen Dollard has put together a comprehensive list of tips, for those with a C# background who are starting to write VB. Check out the list here:

http://msmvps.com/blogs/kathleen/archive/2008/07/25/what-a-c-coder-should-know-before-they-write-vb-updated.aspx

Leave a Comment
  • Please add 1 and 4 and type the answer here:
  • Post
  • PingBack from http://blog.a-foton.ru/2008/09/have-a-background-in-c-and-starting-to-write-some-visual-basic-lisa-feigenbaum/

  • Given the .NET framework is the same for both C# and VB, these two languages should converge over time and eventually be 100% portable between the two with automated tools from MS.  Making them diverge over time with special language features or slightly different namespaces (e.g., ME in vb) is a very bad thing.

  • Hi Greg,

    Thanks for your comment. It is in fact our goal to co-evolve the two languages. That means that although each language will still retain its own particular style, whatever large features we add to one language we will also add to the other. The VB/C# strategy has been different in the past, but this is what we are using going forward, and have been taking very seriously as we plan for the next release of Visual Studio.

  • Good to hear that VB and C# will converge over time.  Too often in mixed groups of VB / C# developers we get a bunch of 13 year olds shouting that their language is better instead of focusing on overall developer productivity and delivering reliable, low cost to maintain systems.  

  • It's so sad that in fact YOU make people switch to C#.

    Full lambdas and actions? C# only.

    Iterators? C# only.

    And the ugly reality is that you cannot write some methods in C# and other in VB. If you want the features you have to convert your whole classes to C# as you cannot define functions in namespaces.

    Why do you make us cry?

  • Many Visual Basic beginners think that Visual C# is a more powerful language ... Both Visual Basic .NET and Visual C# .NET use the common language runtime.

  • Microsoft C# is a great product for programmer, I remember learning in University few years ago. No doubt there are a lot of  C# programmer jobs out there.

Page 1 of 1 (7 items)