Difference Between C# And VB.NET Using in Asp.Net


Difference Between C# And VB.NET Using in Asp.Net


S.No
                  C#
                         VB.NET
1C# an Object Can Only be Created Using NewVB.NET an Object Can  Created Using New & CreateObject().
2C# Variables are Declared Using Declarators. VB.NET Variables are Declared Using Keyword such as Private,Protected,Friend,Public,Static,Dim.
3C#  Void is Specified as The Return Type  When a Method Does not Return a Value.VB.Net Sub is Used Method Declaration to Indicate that the Method  Does not Return Any Value 
4C# Constructor Are Used  To Initialize An Object.VB.NET Sub New() is Used to Initialize Newly Created Object.
5Object Clean Can be Explicit Done by Destructor in C#.Object Clean Done by Finalize Method in VB.NET.

6Default Property is Defined By Using Indexer..Default Property is Defined By Using Default.
7Abstract Class Can Only Inherited but not Instantiated MustInherit Can Only Inherited but not Instantiated 
8Sealed Keyword Used to Class Can Not Inherited.NotInheritable Keyword Used to Class Can Not Inherited.
9Does not Use  Exponentiation Operator Use ^ Exponentiation Operator .
10Using Division Operator is /.Bitwise Operator is &,|.
Using Division Operator is \.Bitwise Operator is And , Or,Xor





0 comments:

Post a Comment