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 |