Net-informations.com
SiteMap  | About    

C# and VB.NET



CSharp and VB.NET are the two primary languages used to program on the .NET Framework environment. Both languages are use the same framework and they both precompiled into the same byte code and then it is compiled and run at runtime. So we can say VB.NET and C# are functionally equivalent. Both C# and Visual Basic.NET share structural similarities with other modern high level languages such as Java and C++ .

But both have different in many features. Primarily keywords are different in each other language . C# is case sensitive while Visual Basic .NET is not. In VB.NET "Example" and "example" are same , but in CSHARP "Example" and "example" are two different variable names. Also it is good to remember that C# statements always terminated by a semicolon (;).

The following are some examples of differences between VB.NET and C#.

Single Line Comments :

Multi Line Comments :

VB.NET C#

Loops

VB.Net C#

Operator (Equal)

VB.Net C#

Declaration

VB.Net C#

Click the following link to learn more about VB.NET and C# Keywords differences

CSharp VB.Net comparison










net-informations.com (C) 2019    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.