What is the difference between vb.net and c#?, DOT NET Programming

Difference between VB.NET and C#

This is the main debatable issue in .NET community and everyone treat their languages like religion.

It is a very important matter which language is the best. Some preferred VB.NET's naturally and some Like professional style and the rest  C# syntax. Both languages use the same framework and speed is Also very much equivalents. But still let's list down some major differences b/w them:-

Advantages of VB.NET :-

1)Has support for the optional parameters which makes COM interoperability very easy.With Option Strict off late bindings are supported.Legacy VB functionality can be used by using  Microsoft.Visual Basic namespace.

2) Has the WITH construct which is not present in C#.

3) The VB.NET part of Visual Studio .NET compiles your code in background. While this is considered an advantage for all small projects, people creating very large projects have found that the IDE slows down considerably as the project gets larger.

Advantages of C#

1)XML documentation is generated from the source code but this is now  incorporated in the Whidbey.

2)Operator overloading which is not present in current VB.NET  but is been introduced in the Whidbey.

3)Use of the statement makes unmanaged resource disposal simple.

4)Access to Unsafe code. This allow the  pointer arithmetic etc, and can improve the performance in some  situations. However, not to be used lightly, as a lot of the normal safety of C# are lost (as the name  implies). These are some major differences that you can access unmanaged code in C# and not in VB.NET.

Posted Date: 9/21/2012 6:56:27 AM | Location : United States







Related Discussions:- What is the difference between vb.net and c#?, Assignment Help, Ask Question on What is the difference between vb.net and c#?, Get Answer, Expert's Help, What is the difference between vb.net and c#? Discussions

Write discussion on What is the difference between vb.net and c#?
Your posts are moderated
Related Questions
Automate installation setup Project Description: The steps are: Clicking four times accept and the setup goes to tray, I do not want to block the mouse or the keyboard. Sk

I need Ninjatrader Strategy Project Description: UI for managing orders, entering trades. This project will probably take several months and I need dedicated resources. Sk

Project Description: i will testing some software which you need and i promise to do my job is the best way, and as fast as possible. Skills required: .NET, MySQL, C# P

What is the difference between delegate and events? Actually events use delegates in the bottom. But they also add an extra layer on the delegates, hence forming the publisher

What is normalization & what are the types of normalization? Normalization is a set of rules that have been established to aid in the design of tables that are meant to be conn

What is the difference between Class and structure's? The main differences between them are as follows:- 1) The Structure is value types while classes are referen

What are the different types of triggers in SQl There are 2 types of triggers in the SQL server 2000 :- 1) INSTEAD OF triggers: The INSTEAD OF triggers fire in place of

What is AppSetting Section in "Web.Config" file? Web.config file describe the configuration for a webproject. By Using "AppSetting" section we can define user defined values. T

We have a VB.NET application to organize the edition and creation of dynamic PDF forms (fishing trip logsheet). The fishing vessel parameters are entered once for good in this VB.N

What are indexes? The Indexes in the SQL Server are similar to the indexes in books. They help SQL Server to retrieve the data quickly.These are classified into clustered and n