---- ---- - Why VB.NET Instead of C#? -- موسوعة علوم الحاسب: Why VB.NET Instead of C#?

Translate

أحدث المواضيع

الأربعاء، 22 يوليو 2009

Why VB.NET Instead of C#?


A lot of press has been given to the new language Microsoft has created: C# (pronounced
“C-Sharp”). This is a new language, based on C/C++. C#, like VB.NET, is
built specifically for the .NET Framework, and much has been written about it. Given
all the hype, some people might wonder why they should choose VB.NET over C#.
Although both VB.NET and C# projects are created in the Visual Studio.NET environment,
VB.NET was created specifically for VB developers and has a number of
unique features that make it a great choice for building .NET applications. VB.NET
is still the only language in VS.NET that includes background compilation, which
means that it can flag errors immediately, while you type. VB.NET is the only .NET
language that supports late binding. In the VS.NET IDE, VB.NET provides a dropdown
list at the top of the code window with all the objects and events; the IDE does
not provide this functionality for any other language. VB.NET is also unique for providing
default values for optional parameters, and for having a collection of the controls
available to the developer. Don’t forget that C#, like its C and C++ brethren, is
case sensitive, something that drives most experienced VB developers crazy. In addition,
C# uses different symbols for equality (=) and comparison (==). Finally, let’s
face it: If you know VB, you are further down the road with VB.NET than you are
with C#. Even though much has changed, the basic syntax of VB.NET is similar to
VB, so you already know how to declare variables, set up loops, and so on.
As you can see, VB.NET has some advantages over the other .NET languages. If
you’re curious about the advantages of VB.NET over traditional VB.

ليست هناك تعليقات: