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
What is Common Type System (CTS)? CTS is the component of CLR by which .NET Framework provides support for multiple languages because it have a type system that is common acros

How do we configure "WebGarden"? The process model configured the "Web garden" settings in the "machine.config" or in the "Web.config" file. The configuration section is named

I am seeking someone who can design customized software for me, preferably in .NET. I have a sql server backend which i would like to use so you only have to work with the front en

Describe the rules and regulations that must be followed whereas creating a well-formed XML document. The following are the rules and regulations that are essential to follow w

Explain keywords with example. Keywords are those words that are reserved to be used for an exact task. These words cannot be used as identifiers. You cannot use a keyword to

Task on data mining Project Description: Task on Opinion Mining, Sentiment Analysis Skills required are C# Programming, Software Architecture, Data Mining

EMR ONC MU2 CERTIFICATION Project Description: We are looking for someone with experience in EMR MU2 certification per ONC needs. If you have experience and participate in

Information Retrieval from Multi-Agent System with Data Mining in Cloud Computing Project Description: I have planned one research model on "Information Retrieval through Mul


What is a candidate key? A table may have more than one combination of columns that could uniquely identify the rows in a table; every combination is a candidate key. During th