What different between VB.net and C#?
What different between VB.net and C#?
|
|
Oct 10 2007, 10:44 PM, updated 19y ago
Show posts by this member only | Post
#1
|
![]() ![]()
Junior Member
207 posts Joined: May 2007 From: KL |
hello there..can someone explain to me..wat different between VB.net and C#? which one is more easy to understand? thanx...
|
|
|
|
|
|
Oct 11 2007, 09:59 AM
Show posts by this member only | Post
#2
|
![]() ![]() ![]() ![]() ![]()
Senior Member
846 posts Joined: Nov 2006 |
if you're familiar with C++, then i'd say C#
well, if you are starting from scratch, VB.net i guess. my humble 2 cents. |
|
|
Oct 11 2007, 10:09 AM
Show posts by this member only | Post
#3
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,319 posts Joined: Dec 2005 From: somewhere i belong |
VB.net and C# are simply two different programming languages developed by microsoft. the underlying technology (.net framework) is the same, both are sharing the common libraries. here's an abstract from an article:
"C# is a JAVA-like language that borrows the good parts of Java and C/C++ and removes the bad parts. In the end, C#'s syntax is a lot like Java's. so if you're familiar with JScript, moving to C# will be easy enough. Ultimately, it is the .NET Framework of Classes that provides the functionality to perform tasks, while the languages themselves - VB.NET, C# etc. - are simply used to connect into it." full article: http://www.4guysfromrolla.com/webtech/012702-1.shtml |
|
|
Oct 11 2007, 10:17 AM
Show posts by this member only | Post
#4
|
![]() ![]() ![]()
Junior Member
404 posts Joined: Jan 2003 |
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 beginners. 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 post has been edited by zybler: Oct 11 2007, 04:41 PM |
|
|
Oct 11 2007, 02:15 PM
Show posts by this member only | Post
#5
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,186 posts Joined: Apr 2006 |
another difference..VB syntax dun need to end with semicolon, hehe XD
|
|
|
Oct 11 2007, 02:57 PM
Show posts by this member only | Post
#6
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
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. this line is valid in vb.net, im not sure about older version, but in newer version its valid alreadyIn 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. 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. |
|
|
Oct 11 2007, 04:39 PM
Show posts by this member only | Post
#7
|
![]() ![]()
Junior Member
207 posts Joined: May 2007 From: KL |
QUOTE(narf03 @ Oct 11 2007, 02:57 PM) this line is valid in vb.net, im not sure about older version, but in newer version its valid already thanx for u all guidance..i wan to learn it soon....later plz help ya..thanx alot.. 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: | 0.0150sec
0.79
5 queries
GZIP Disabled
Time is now: 15th December 2025 - 06:31 PM |