Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 What different between VB.net and C#?

views
     
narf03
post Oct 11 2007, 02:57 PM

Look at all my stars!!
*******
Senior Member
4,547 posts

Joined: Dec 2004
From: Metro Prima, Kuala Lumpur, Malaysia, Earth, Sol


QUOTE(zybler @ Oct 11 2007, 10:17 AM)
In terms of the syntax, VB. NET and C# are totally different. VB.NET's syntax are inspired by BASIC. It's generally more verbose than C#. They say because of this, VB.NET are more understandable for begineers. Also, you don't get multiline comment in VB.NET.

In terms of language features, each has their own "unique" features, for example, in C#, you could do x += 3; In VB.NET you can't. Also worth mentioning is that, if you use Visual Studio and you code in VB.NET, you get error messages as you type. This is called "background compilation". C# users don't enjoy this feature.

However, in the end, both compiled to MSIL, which is the only instruction set that the .Net frameworks understands. So, the ends are (almost) the same but the means to get there are not the same.
*
this line is valid in vb.net, im not sure about older version, but in newer version its valid already

CODE

       x += 3



in malaysia, vb.net is more common, u can easily get a job with it. But I think c# is a better choice, if u learned it, its pretty easy for you to catch up c++ or c, both are very powerful old programming languages, please note that c# is harder to learn compare to vb.net if you have totally no knowledge in programming.

 

Change to:
| Lo-Fi Version
0.0163sec    0.56    6 queries    GZIP Disabled
Time is now: 19th December 2025 - 02:34 AM