Results 1 to 5 of 5

Thread: VB.NET versus c#

  1. #1

    Thread Starter
    Addicted Member chicocouk's Avatar
    Join Date
    Sep 2001
    Posts
    207

    Smile VB.NET versus c#

    I know i've probably missed the point, but if .net programs all run on the .net framework, then if i write a program in vb.net will it run as fast as one written in c#? And if so, why learn c#? What's the advantages / disadvantages of each?

    Cheers people
    MCSE, Mcp+I, Unicenter Engineer

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Syntax preference mostly. C# has a few things it can do that VB .NET cannot which generally you may never even need, like pointers, operator overloadiing, and bit shifting..
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Addicted Member chicocouk's Avatar
    Join Date
    Sep 2001
    Posts
    207
    so if i know vb6 (to some extent ) and want to move over to vb.net, i can use a lot of similar syntax? But if say, i knew c / c++ (which i don't) then maybe c# would be the better move? But for the main part, the finished projects will run equally fast?

    if so, sounds pretty good to me
    MCSE, Mcp+I, Unicenter Engineer

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    yeah speed is going to be the same. Just stick with the syntax you feel most comfortable with although knowing both VB and C# syntax is agood practice so if you need some example code and find it in VB, you can easily change it to C# syntax with no problem, or vice versa.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    Lively Member
    Join Date
    Jan 2001
    Location
    Bradenton, FL
    Posts
    87
    I don't remember where I saw it, but there's a web service out there that will convert your code from C# to VB.NET and vice-versa. I haven't tried it out, so I don't know how well it works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width