473,657 Members | 2,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8268
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\Releas e".

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*********@on line.microsoft. com> wrote in message
news:Gf******** ******@cpmsftng xa06.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\Releas e".

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
1901
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 build release comparisons (I use a script to generate a main page showing all the files that were changed in a build with hyperlinks to side by side differences for each of those files). I also find it useful for generating HTML test reports to...
6
3114
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 application runs (since the last update) fine, but other tools of that application (database import and the database manager for check and rebuild) doesn't. They hang up or kill the database. Our software developer says that these problems are in...
14
2061
by: Bern | last post by:
what are all the diferences between the two?
4
3872
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
11837
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 engines. A subject directory classifies websites into some category. Could anyone point me towards the differences between these three that are significant for an ebusiness web site owner?
13
9622
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 throughout, however the php powered html checker I have only caters for HTML 4.01 Strict. If possible I need to know the complete differences between Strict and Transitional so I can go through the php script and correctly set it up to properly...
3
3069
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
3703
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 "&" when working with strings. eg MyStr = "I have " & MyNumber & " apples." and MyStr = "I have " + MyNumber + " apples."
4
4836
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 decided to play around with C# and .NET 2.0 a little bit, but I'm still not completely certain about the differences between C++ and C#. All I know is that there are some limitations that aren't on C++ (which is probably a good thing... I think...
0
8302
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8499
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.