Difference Between C# And VB.NET Using in Asp.Net
S.No
|
C#
|
VB.NET
|
| 1 | C# an Object Can Only be Created Using New | VB.NET an Object Can Created Using New & CreateObject(). |
| 2 | C# Variables are Declared Using Declarators. | VB.NET Variables are Declared Using Keyword such as Private,Protected,Friend,Public,Static,Dim. |
| 3 | C# 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 |
| 4 | C# Constructor Are Used To Initialize An Object. | VB.NET Sub New() is Used to Initialize Newly Created Object. |
| 5 | Object Clean Can be Explicit Done by Destructor in C#. | Object Clean Done by Finalize Method in VB.NET. |
| 6 | Default Property is Defined By Using Indexer.. | Default Property is Defined By Using Default. |
| 7 | Abstract Class Can Only Inherited but not Instantiated | MustInherit Can Only Inherited but not Instantiated |
| 8 | Sealed Keyword Used to Class Can Not Inherited. | NotInheritable Keyword Used to Class Can Not Inherited. |
| 9 | Does not Use Exponentiation Operator | Use ^ Exponentiation Operator . |
| 10 | Using Division Operator is /.Bitwise Operator is &,|. | Using Division Operator is \.Bitwise Operator is And , Or,Xor |



0 comments:
Post a Comment