Saturday, March 24, 2012

The difference between vb and c# in .NET 2.0

Since VB.NET 2.0 support operator overloading? Does it mean that VB.NET and C# almost identical?

They've always been near identical. So perhaps they're more identical now? ;)

Actually, there are several new VB.NET features in 2.0 that aren't in C#. I still think, though, the primary reasons you'd choose one over the other are the same in 2.0; This means that it's typically not a technological reason.

-Brock


VB still defaults Option Strict to Off, which means that the compiler does a lot of type conversions for you. VB programmers are spoiled by not worrying about type issues.

And a subtle but telling difference: In VB, .aspx pages default to the web designer. In C#, they open in the editor by default. I think the idea is that VB programmers are more likely to drag and drop, C# programmers more likely to fiddle with the HTML.

--Doug

0 comments:

Post a Comment