VB and C# in .NET

bungpeng

Well-known member
Joined
Sep 10, 2002
Messages
906
Location
Malaysia
In .NET environment, can I say these two languages are same powerful?

I found that most of Microsoft guys use C# rather than VB, is it C# can do something VB cannot? or other reason?
 
While there are certain language specific things supported in each like operator overloading in C#, Im pretty sure they are equals in that they both sit on the same framework and therefore have the same power exposed to them. I think language choice is purely what one feels comfortable with and it just happens that the MS guys are more comfortable with C#. If my customer didnt specify VB, Id be coding in C# right now too just because I like the C# syntax much better than VB.
 
I did read somewhere that C# is 3 to 10% faster in some case than VB.NET.

BTW, you can put C# and VB.NET code in the same solution.
 
Originally posted by Robby
I did read somewhere that C# is 3 to 10% faster in some case than VB.NET.
I, perhaps naively, dont understand how that could be. Since they compile down to the same CIL code, it seems like they should be the same. Of course my simple understanding assumes that the compiler for C# and VB.NET are equally well-written. I think Ive even seen a demo where the same program was written in both languages and when they pulled up the CIL code it was the same. Could be mistaken though, as I dont claim to fully understand the world of runtimes and virtual machines
 
Back
Top