The Real difference between C# and VB.Net

Denaes

Well-known member
Joined
Jun 10, 2003
Messages
956
Ive heard that C# and VB.Net are effectivly the same language, only with a different dialect. That C# is more comfortable for C users, but effectivly uses the same commands and shares the same speed/performance of VB.Net.

Ive also heard that C# is better for making games, so presumably better in some performance issues.

Honestly, from the common sense I gather, unless it too offers backwards compatability to C/C++, it should perform better than VB.Net as there would be less overhead.

VB.Net has to deal with a lot of backwards compatability issues. True they kicked a bunch of them out, but there are still redundant ways of doing things to keep the old vb6 programmers happy. Im not sure how much overhead this is carrying, but it should be some.

So which are the advantages of each? Does C# have the same database advantages that vb.net does? Does one outperform the other? is one easier or more robust?

Ive heard different answers to some of these questions looking around on these and other boards, but I thought Id ask and get opinions and facts.
 
Both VB.NET and C# can access the same class library, and they both compile to the same thing. Its only a matter of which syntax you choose.
 
VB.NET only has to deal with backward compatibility if you force it to. They both compile to the same intermediate language, yes, but that doesnt mean they compile the exact same way. The only difference in performance that I know is that C# uses the garbage collector slightly more aggressively.
 
Back
Top