PDA

Click to See Complete Forum and Search --> : VB.NET versus c#


chicocouk
May 2nd, 2002, 10:38 AM
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

Cander
May 2nd, 2002, 10:45 AM
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..

chicocouk
May 2nd, 2002, 10:49 AM
so if i know vb6 (to some extent :rolleyes: ) 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

Cander
May 2nd, 2002, 10:52 AM
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.

brownga
May 7th, 2002, 06:12 PM
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.