Difference between C# and VB.NET

R

Raj Dhrolia

Hi Guys,

It might seem to be a very easy question, but i am very much eager to
know some good technical difference between C# and VB.NET.

Are there anything that i can do in one language and cannot in other?
And finally why C# seems to be a sort of standard in industry?

Regards,
Raj Dhrolia.
 
H

Hermit Dave

hello Raj,
consider this,

c# was the language was designed for scratch to actually emit msil and work
with the cli and the run-time. so anything you write in c# is 100% .net
compliant...
yes VB.net was also redesigned to accomodate things to make it object
oriented instead of it being just object based... so you jig the compiler
and you change few things in the language and you make it emit msil.... with
..net there's a degree of compliance...
i guess similar inference can applied to c++.
Both VB(RAD) and C++(win32s) have been long associated with their own ways
and many people prefer a clean start... i would rather leave c++ the way i
know it along with ATL/COM programming rather than mixing it up with managed
c++.

You asked about differences between the two... well one difference i heard a
few days back was that VB.NET still doesnt support operator overloading...
well C# does... As for as how they can both achieve in terms of .net app
development... almost similar things cause both emit almost similar msil
when compiled...

and i think the above contribute to it being an industry standard (plus its
standardized.... ECMA submission good few years back)....

hope this helps,

HD
 
G

George Birbilis

c# was the language was designed for scratch to actually emit msil and
work
with the cli and the run-time. so anything you write in c# is 100% .net
compliant...

maybe so, though I have some reservations on wheteher ANYTHING you CAN write
will ALWAYS be 100% CTS/CLI compliant (could call into unmanaged stuff for
example)
You asked about differences between the two... well one difference i heard a
few days back was that VB.NET still doesnt support operator overloading...
well C# does... As for as how they can both achieve in terms of .net app
development... almost similar things cause both emit almost similar msil
when compiled...

no definition of new operators allowed, but you can overload operators I
think (override "op_add", "op_subtract" and similar methods at a descendent
type). Of course that's a problem, I'm not sure why they didn't allow this
in VB.net

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <[email protected]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.........................................................................
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top