Required for beginners: Visual Basic and C # functions comparison

Source: Internet
Author: User

First, we declare that there is no difference between the two in terms of. NET Productivity in terms of language comparison. This comparison aims to clarify the misunderstandings and rumors about Visual Basic and C # functional errors. All of the following differences are obtained through profound research, which is more scientific than some common comparisons.

Next we will first compare the functions of the two languages in Visual Studio. NET 2003. * Indicates that this function is not available in the target language, but other syntaxes can be used to implement the same function at the IL level. Note: This comparison only selects meaningful functions. Some functions, such as loops and branch statements, are not listed in the comparison. At the same time, because VB is compatible with the old version, syntax that does not have the characteristics of modern languages is not included in the comparison column (such as On Error statements and Option Explicit statements ).

Visual BasicYesC #No features

C #YesVisual BasicNo features

LocalStaticVariable*

WithEventsAndHandlesSyntax*

Optional Parameter

Pass by name

Attribute Parameters

Access a virtual function in non-Virtual Mode

Interface for name change

Post-binding

WithStatement*

UseImportsImport static members

Module

IsOperator*

Try... Catch WhenStatement

Visual BasicFeatures and functions of the Runtime Library

Operator overload

IsEventSpecifyAddAndRemoveAccessors

UsingStatement*

XMLComment document

Insecure code and pointer

As

Related Article

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.