Friday, October 26, 2007

Difference between vb.net and c#.net

Basic different between vb.net & c#


C# and VB differ by the fact that they are 2 different programming languages using the same .NET Framework.


There are so many differences between vb.net and c# which are given below-Here I mentioned the some important differences between vb.net and c#.


1. C# provides operator overloading and vb.net does not provide it.
2. C# supports unsigned integer and vb.net does not.
3. C# does not support optional argument and vb.net supports it.
4. C# runs slightly faster than vb.net.
5. C# enforces strict type casting and vb.net does not enforce it.
6. Event declaration is easier in vb.net than c#.
7. VB.NET is flexible of working with arrays which can be resized using redid statement and c# does not support redid statement.
8. VB.NET is not case sensitive and c# is case sensitive.

-------------------------------------------------------------------------------------------------

Note: It will be clear some example.

-------------------------------------------------------------------------------------------------


No comments: