PC Review


Reply
Thread Tools Rate Thread

c# and vb.net comparison

 
 
vinu
Guest
Posts: n/a
 
      5th Dec 2003
What are the main differance between c# and vb.net.
 
Reply With Quote
 
 
 
 
Codemonkey
Guest
Posts: n/a
 
      5th Dec 2003
> What are the main difference between c# and vb.net.

Pretty broad question there mate Here's a shortlist:

1) The syntax
2) C# supports operator overloading VB doesn't yet (it will in the next
version)
3) C# allows the <NonSerialized> attribute to be applied to events. VB
doesn't (yet)
4) VB has a number of ways of handling events (Handles and AddHandler
methods)
5) VB intellisense is better in Visual Studio
6) C# supports XML documentation in the comments.
7) Most samples on the web seem to be in C# (although there are some good C#
to VB converters)

Under the hood, there should be no difference as they are both compiled into
the same Intermediate Language. Performance wise, they should be pretty much
the same.

Don't base your choice of language on the differences between them as this
will probably change when new versions are released. Instead your decision
should be based on Business Factors like:

-How long it will take to learn the language
-Your (and your team) background (C++ or VB or even Java)
-The background of those who have to support the code.


Personally, I'm a VB programmer because of my background in VB6. This isn't
stopping me from learning C# in case I need it on a future project.

Remember, knowing dotnet is 10% knowing the language and 100% knowing the
framework!

Hope this helps,

Trev.






"vinu" <(E-Mail Removed)> wrote in message
news:0a8101c3bb26$b227ccd0$(E-Mail Removed)...
> What are the main differance between c# and vb.net.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex comparison of Columns of Data: Extracting unique records after comparison on 4 levels ap Microsoft Excel Programming 2 23rd Jan 2007 10:12 AM
AV comparison CLV3 Anti-Virus 4 27th Jan 2006 01:33 PM
MD5 generation/comparison and Strings comparison Mike Ji Freeware 0 15th Nov 2004 11:57 AM
Re: CPU comparison Wouter van Oijen Computer Hardware 0 10th Jul 2003 04:04 PM
Re: CPU comparison Alien Zord Computer Hardware 0 10th Jul 2003 10:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:22 AM.