-
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
-
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..
-
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
-
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.
-
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.