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 cyclomatic complexity and why is it important? Cyclomatic complexity is a computer science metric (measurement) developed by Thomas McCabe used to generally calculate t

A Super-hero Sharepoint developer with great design skills Project Description: US: Our start-up company develops a very cool and innovative SharePoint related product with c

Script for auto seating poker Project Description: Not just like that though. I need a similar program that can scan during poker lobbys (pokerstars, ipoker, full tilt and on

What is an application domain? Previously "PROCESS" were used as the security boundaries. One of the process has its own virtual memory and does not overlap the  another proces

What is a host process? A host process is an implementable program that hosts a workflow. It might be a Windows Forms application, a Web application, or a Web service applicati

What is XML DOM? The DOM stands for Document Object Model, which explains the logical formation of documents and provides the way to access and manipulate a document. It suppli

What is .NET Remoting? The .NET remoting is replacement of DCOM. Using .NET remoting you can make remote object calls that lie on different Application Domains. since the remot

What are benefits and Limitation of using Viewstate for state management The benefits of using Viewstate are as follows:- 1)    There is no server resources required because

What is DCOM? DCOM is different from COM in that it allows for creating objects distributed around  a network, and a protocol for invoking that object's methods, & secures the

I need Complete ERP Solution of Jeweler Manufacturing Project Description: MY Project Have Complete ERP Solution of jewellary manufacturing Process. By Using of my software y