Visual Basic and C # function comparison

zhaozj2021-02-11  259

First, declare that only language comparisons are used, and there is no difference between .NET productivity. This contrast is to clarify the understanding and rumors of Visual Basic and C # function. All of the following differences are derived through a more profound study, more scientific and scientific compared to some common contrast.

The following is compared to the comparison of the two language functions in Visual Studio .NET 2003. * Indicates that there is no such function in the other party, but you can use other syntax to implement exact same functions at the IL level. Note that this comparison only selects meaningful features, certain functions, such as loop, branch statements, and other traditional functions are not comparable. At the same time, VB remains left by compatible old versions, and does not have a syntax of modern language characteristics. Such as the ON ERROR statement, an Option Explicit statement, etc.

Visual Basic has a function of C # has a function of Visual Basic's functional STATIC variable * WitHevents and Handles syntax * Optional parameters Delivery attribute parameters Press Non-virtual way to access a virtual function rename Implement Interface Binding with statement * Import static member module IS operator * try ... catch when the Visual Basic runtime library function and function operator is overloaded to Event Specify Add and REMOVE Access Statement * XML Comment Document Unsafe Code and Pointer AS Operator OUT Modifier * Compiler CLS Check

Next, it is a comparison of the functions in the future Visual Studio 2005. In this contrast, all differences from Visual Studio 2005 new features will be represented by bold. Note that not every new feature can generate differences, such as generics and Partial Type new features.

Visual Basic has a function of C # has a function of Visual Basic's functional STATIC variable * WitHevents and Handles syntax * Optional parameters Delivery attribute parameters Press Non-virtual way to access a virtual function rename Implement Interface Binding with statement * Import static member IS operator with Imports * Try ... catch when the Visual Basic runtime library features and functions default instance

MY Name Space Specifies the Add and Remove Accessor Unsained Code and Pointer OUT Model * Itecher

Anonymous method

It can be seen that no matter what version is contrast, it is more features of Visual Basic. Of course, it is only possible to change the preferences of the language, nor may be the basis for choosing development tools. But there is a word to give me a deep impression. When I was investigated on 9CBS, I said that he said that he used C #, "I use C # because C # is strong than VB, even a little bit is also strong." Even if VB is strong, someone will say so. This means that the discrimination of language or development tools is not caused by functional differences. What is the real reason?

转载请注明原文地址:https://www.9cbs.com/read-5110.html

New Post(0)