473,414 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Differences between C# and VB.Net??

Hi,
Are there any differences between C# and VB.Net besides syntax?
Performance-wise, how do they compare?

Thanks,
Dan
Jul 21 '05 #1
2 8244
Aside from the obvious syntax differences between VB.Net and C#, there are
some language features that are present in one but not the other. For
example,

* VB.Net supports having optional parameters, whereas C# doesn't.
* C# doesn't have the equivalent of VB's "With / EndWith" statements.
* (I'm sure there are C# language features that aren't available in VB, but
I just can't think of any at the moment.)

Also, aside from language differences, you may find various subtle
differences in terms of the development experience inside Visual Studio.
For example,

* intellisense may work slightly differently in certain cases (especially
with project-to-project references)
* VB has some different project properties than C# (Option Explicit, etc.)
* VB builds the assemblies to the "bin" directory by default, whereas C#
builds the assemblies to "bin\Debug" or "bin\Release".

These are just some random examples off the top of my head. There are
probably a lot more, and I don't know that anyone has a comprehensive list.
But in the end, once your project has been compiled, it's all just IL in
your assembly, so there's no significant difference at this point. Perhaps
someone has done perf comparisons, but I don't know of any. I wouldn't
expect there to be any noticeable perf difference.

--Rajeev

Jul 21 '05 #2
Dan
Thanks for the reply.

Good stuff to know.

Thanks,
Dan

"Rajeev Goel" <Ra*********@online.microsoft.com> wrote in message
news:Gf**************@cpmsftngxa06.phx.gbl...
Aside from the obvious syntax differences between VB.Net and C#, there are
some language features that are present in one but not the other. For
example,

* VB.Net supports having optional parameters, whereas C# doesn't.
* C# doesn't have the equivalent of VB's "With / EndWith" statements.
* (I'm sure there are C# language features that aren't available in VB, but I just can't think of any at the moment.)

Also, aside from language differences, you may find various subtle
differences in terms of the development experience inside Visual Studio.
For example,

* intellisense may work slightly differently in certain cases (especially
with project-to-project references)
* VB has some different project properties than C# (Option Explicit, etc.)
* VB builds the assemblies to the "bin" directory by default, whereas C#
builds the assemblies to "bin\Debug" or "bin\Release".

These are just some random examples off the top of my head. There are
probably a lot more, and I don't know that anyone has a comprehensive list. But in the end, once your project has been compiled, it's all just IL in
your assembly, so there's no significant difference at this point. Perhaps someone has done perf comparisons, but I don't know of any. I wouldn't
expect there to be any noticeable perf difference.

--Rajeev

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dan Gass | last post by:
The difflib.py module and the diff.py tools script in Python 2.4 alpha 3 now support generating side by side (with intra line differences) in HTML format. I have found this useful for performing...
6
by: Martin Meyer im Hagen | last post by:
Hello, I've got installed Win 2003 SBS Premium with the SQL Server 2000 on a server machine. It works almost fine, except the application which uses the SQL Server. The main part of the...
14
by: Bern | last post by:
what are all the diferences between the two?
4
by: effendi | last post by:
How can I extract differences between two arrays using Javascript? I hv for example, apple, orange, pear and another array with apple, orange and I would like to get pear. Thanks.
2
by: Patrick | last post by:
Are the differences between a search engine, a subject directory and a meta search engine significant for an ebusiness web site owner? A meta search engine merely uses ordinary existing search...
13
by: Kieran | last post by:
I am designing a content management system and I want to make sure all pages entered into it's database by users are using valid HTML. I have designed the system to use HTML 4.01 Transitional...
3
by: Daniel | last post by:
Are the differences between MSXML and .Net XSL transformation documented online anywhere? Many of my XSL's work in MSXML but transform differently in ..Net XSL transformation.
4
by: MS | last post by:
Just a general question here re VBA. Can anyone explain the differences between "!" and "." when refering to a control? eg Me!TxtBox and Me.TxtBox. What is difference between "+" and "&"...
4
by: Matt F | last post by:
Hey all, I'm a hobbyist programmer who usually codes in C++ or Java. I don't claim to be experts at either, and I'm not familiar with different types of variables, inheritance systems, etc. I've...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.