Visual Basic and C # feature comparisons

Source: Internet
Author: User
Tags comparison modifier new features visual studio
Visual first declares that there is only a linguistic contrast here, and there is no difference in. NET productivity. This comparison is made to clarify the knowledge and gossip about Visual Basic and C # functional errors. All of the following distinctions have been drawn from more profound studies, which are more scientific than some common comparisons.

Compare the features of the two languages in Visual Studio. NET 2003 below. * Indicates that there is no such feature in the other language, but you can implement exactly the same functionality at the IL level with other syntax. Note that this comparison only selects meaningful features, some features such as loops, branching statements, and other traditional functions are not in the comparison list. At the same time, VB due to compatible with the old version of the legacy, does not have modern language features of the grammar is not the list of comparisons (such as on the error statement, Option explicit statements, etc.).

Visual Basic has features that are not in C #
C # has features that are not available in Visual Basic

Local static variable *

WithEvents and Handles Grammar *

Optional parameters

Passing by name

Property parameters

Accessing a virtual function in a non-virtual manner

Exchanging names to implement interfaces

Late binding

With statement *

Import static members with imports

Module

Is operator *

Try ... Catch when statement

Functions and functions of the Visual basic Run-time Library
Operator overloading

Specify add and remove accessors for event

Using statement *

XML Annotation Document

Unsafe code and pointers

As operator

Out modifier *

Compiler CLS Check


Next, it is a comparison of the capabilities of the future Visual Studio 2005. In this comparison, all the differences that arise from the new visual Studio 2005 features are shown in bold text. Note that not every new feature produces a difference, such as generics and partial type, which are both new features.

Visual Basic has features that are not in C #
C # has features that are not available in Visual Basic

Local static variable *

WithEvents and Handles Grammar *

Optional parameters

Passing by name

Property parameters

Accessing a virtual function in a non-virtual manner

Exchanging names to implement interfaces

Late binding

With statement *

Import static members with imports

Is operator *

Try ... Catch when statement

Functions and functions of the Visual basic Run-time Library

Default instance

My namespace
Specify add and remove accessors for event

Unsafe code and pointers

Out modifier *

Iterators

anonymous method


It is obvious that no matter what version is compared, there are more functions of Visual Basic. Of course, only by the number of functions, can not change the personal preference for language, it is unlikely to become the basis for the choice of development tools. But there is a sentence to my impression is very deep, I do survey in CSDN, there is a person said he uses C # reason is: "I use C # because C # is more powerful than VB, even if just a little bit is strong." Even if VB is relatively strong, or someone will say so. This means that the discrimination of language or development tools is not caused by functional differences, so what is the real reason?


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.