Pronunciation |
It is pronounced as Visual Basic .NET. |
It is pronounced as C-Sharp. |
Belonging |
It is an updated version of Classic Visual Basic 6.0. |
It belongs to the C family and it is evolved from C. |
Variable Declaration |
Variables are declared using keywords such as Private, Protected, Friend and Static, etc. |
Variables are declared using declarations. |
Object Creation |
The object is created using New and Create Object(). |
The object can be created using New. |
Object Initialization |
In this, Sub New() is used to initialize, uses a newly created object. |
In this, constructors are used to initialize the object. |
Class Declaration |
In VB.NET declare a class by using Class <implementation> keyword. |
In C# declare a class by using the Class keyword. |
Hiding |
This feature will not be supported in VB. NET. |
This feature is supported by C#. |
Default Property |
It is defined by using Default. |
It is defined by using Indexer. |
Overloading Function |
In VB.NET for Overload a function or method Overloads keyword is used. |
In C# for Overload a function or method no language keyword is required for this purpose. |
Exponential Operator |
It uses the ‘this’ operator. |
It does not use the ‘this’ operator. |
Base Class |
In VB.NET refer to a base class by using the MyBase keyword. |
In C# refer to a base class by using the base keyword. |
Object Clean |
It is done by Finalize Method. |
It is done explicitly by Destructor. |
Implementation |
It follows the Inheritance model. |
The basic interface is done by sing class or structure. |
Error Handling |
It supports both structured and unstructured error handling. |
It supports only structured error handling. |
Case Sensitivity |
It is case insensitive |
It is case-sensitive. |
Shadowing |
This feature is supported in VB.NET. |
This feature is not supported in C#. |
Termination of statement |
A semicolon is not used. |
A Semicolon is used. |
Usage |
Basically used for the development of Microsoft-based applications. |
Basically used for the development of desktop-based applications. |