.NET

Reply
*Bob
Message 1 of 14 (41 Views)

C# 2005 vs VB.NET 2005

41 Views, 13 Replies
08-30-2006 04:15 PM
can someone please explain what [if any] advantages C# 2005 has over VB.NET
2005. I have read in several articles that there is not enough of a
difference between the two to necessarily consider one over the other
especially with the new 2005 versions.
*J. Daniel Smith
Message 2 of 14 (41 Views)

Re: C# 2005 vs VB.NET 2005

08-30-2006 07:38 PM in reply to: *Bob
The language differences that do exist are fairly minor (e.g., "using" in
C#), the choice is pretty much one of preference. VB.NET and C# have some
different high-level goals, but I suspect many of those things don't apply
as much when using the .NET wrappers with AutoCAD.

If you're currently using VBA with AutoCAD, you'll probably like VB.NET
better. If you've been doing a lot of ObjectARX development, you'll
probably like C# (or C++/CLI) instead.

Dan

"Bob" wrote in message
news:5313143@discussion.autodesk.com...
can someone please explain what [if any] advantages C# 2005 has over VB.NET
2005. I have read in several articles that there is not enough of a
difference between the two to necessarily consider one over the other
especially with the new 2005 versions.
Distinguished Contributor
NathTay
Posts: 1,691
Registered: ‎12-15-2003
Message 3 of 14 (41 Views)

Re: C# 2005 vs VB.NET 2005

08-31-2006 12:19 AM in reply to: *Bob
The Using Keyword has been introduced into VB.NET 2005.
I remember seeing a comparison of the languages features on the Microsoft site but can't find it anymore.

Regards - Nathan
*Paul Richardson
Message 4 of 14 (41 Views)

Re: C# 2005 vs VB.NET 2005

08-31-2006 03:58 AM in reply to: *Bob
Although originally, they were the same, 2005 has made strides
to put them in their own place. VB.net 2005 is more like VB6,
i.e. "Edit and Continue" although available in both this was driven
by VB and only added to C# at the last minute.

Next time you're in "Borders" or such check out ".Net Components
2nd Edition" by Juval Lowy. He gives a great description of the
two languages and their many differences in 2005. Basically he
equates VB to the quick and dirty RAD environment of VB6, and
C# to the contemplative "Enterprise" language of C++. You know
they way they should be... :smileyhappy:

"Bob" wrote in message
news:5313143@discussion.autodesk.com...
can someone please explain what [if any] advantages C# 2005 has over VB.NET
2005. I have read in several articles that there is not enough of a
difference between the two to necessarily consider one over the other
especially with the new 2005 versions.
*Bob
Message 5 of 14 (41 Views)

Re: C# 2005 vs VB.NET 2005

08-31-2006 07:12 AM in reply to: *Bob
thanks for the replies.

does C# offer a way to do things that VB.net cannot do?

does C# offer a performance advantage?

i'm really not looking for specific syntax differences but more about
whether one offers functionality that the other does not.

i realize they both use the .net framework class lib but is there really any
advantage [in so far as what can be accomplished] to C# as opposed to
VB.net?


"Paul Richardson" wrote in message
news:5313592@discussion.autodesk.com...
Although originally, they were the same, 2005 has made strides
to put them in their own place. VB.net 2005 is more like VB6,
i.e. "Edit and Continue" although available in both this was driven
by VB and only added to C# at the last minute.

Next time you're in "Borders" or such check out ".Net Components
2nd Edition" by Juval Lowy. He gives a great description of the
two languages and their many differences in 2005. Basically he
equates VB to the quick and dirty RAD environment of VB6, and
C# to the contemplative "Enterprise" language of C++. You know
they way they should be... :smileyhappy:

"Bob" wrote in message
news:5313143@discussion.autodesk.com...
can someone please explain what [if any] advantages C# 2005 has over VB.NET
2005. I have read in several articles that there is not enough of a
difference between the two to necessarily consider one over the other
especially with the new 2005 versions.
*Paul Richardson
Message 6 of 14 (41 Views)

Re: C# 2005 vs VB.NET 2005

08-31-2006 07:46 AM in reply to: *Bob
Since they both come with VS2005, why not just
try them both. They both have tools that the other
does not. If you're just getting started than VB is
probably for you, nor will the advanced C# tools
be needed right away. Get a good book! Also, it's
no coincidence that good coders are also good
researchers. Many other groups/websites/books
have answerd these questions related to .net. I would
start there and then you get to make your own
decision instead relying on our opinions. Best thing
to do is learn the .net framework and start coding.

As far as speed goes, I haven't played with VB.net
but I know how I would test it if I need to know.

"Bob" wrote in message
news:5313896@discussion.autodesk.com...
thanks for the replies.

does C# offer a way to do things that VB.net cannot do?

does C# offer a performance advantage?

i'm really not looking for specific syntax differences but more about
whether one offers functionality that the other does not.

i realize they both use the .net framework class lib but is there really any
advantage [in so far as what can be accomplished] to C# as opposed to
VB.net?


"Paul Richardson" wrote in message
news:5313592@discussion.autodesk.com...
Although originally, they were the same, 2005 has made strides
to put them in their own place. VB.net 2005 is more like VB6,
i.e. "Edit and Continue" although available in both this was driven
by VB and only added to C# at the last minute.

Next time you're in "Borders" or such check out ".Net Components
2nd Edition" by Juval Lowy. He gives a great description of the
two languages and their many differences in 2005. Basically he
equates VB to the quick and dirty RAD environment of VB6, and
C# to the contemplative "Enterprise" language of C++. You know
they way they should be... :smileyhappy:

"Bob" wrote in message
news:5313143@discussion.autodesk.com...
can someone please explain what [if any] advantages C# 2005 has over VB.NET
2005. I have read in several articles that there is not enough of a
difference between the two to necessarily consider one over the other
especially with the new 2005 versions.
*J. Daniel Smith
Message 7 of 14 (41 Views)

Re: C# 2005 vs VB.NET 2005

08-31-2006 08:33 AM in reply to: *Bob
You can successfully use the .NET wrapper classes to create "managed ARXs"
for AutoCAD with either language.

Each language has various strengths and weaknesses, but I don't think there
is anything of significance to creating managed ARXs that one language can
do that the other can't. The same is not true for C++/CLI; with that
language you get the best of both worlds: native C++ for custom objects with
easy access to the .NET framework.

Dan

"Bob" wrote in message
news:5313896@discussion.autodesk.com...
thanks for the replies.

does C# offer a way to do things that VB.net cannot do?

does C# offer a performance advantage?

i'm really not looking for specific syntax differences but more about
whether one offers functionality that the other does not.

i realize they both use the .net framework class lib but is there really any
advantage [in so far as what can be accomplished] to C# as opposed to
VB.net?


"Paul Richardson" wrote in message
news:5313592@discussion.autodesk.com...
Although originally, they were the same, 2005 has made strides
to put them in their own place. VB.net 2005 is more like VB6,
i.e. "Edit and Continue" although available in both this was driven
by VB and only added to C# at the last minute.

Next time you're in "Borders" or such check out ".Net Components
2nd Edition" by Juval Lowy. He gives a great description of the
two languages and their many differences in 2005. Basically he
equates VB to the quick and dirty RAD environment of VB6, and
C# to the contemplative "Enterprise" language of C++. You know
they way they should be... :smileyhappy:

"Bob" wrote in message
news:5313143@discussion.autodesk.com...
can someone please explain what [if any] advantages C# 2005 has over VB.NET
2005. I have read in several articles that there is not enough of a
difference between the two to necessarily consider one over the other
especially with the new 2005 versions.
*Bob
Message 8 of 14 (41 Views)

Re: C# 2005 vs VB.NET 2005

08-31-2006 01:28 PM in reply to: *Bob
it sounds as though everyone is saying language does not matter. C# does not
offer any functionality or performance advantages over VB.net?


"J. Daniel Smith" wrote in message
news:5314071@discussion.autodesk.com...
You can successfully use the .NET wrapper classes to create "managed ARXs"
for AutoCAD with either language.

Each language has various strengths and weaknesses, but I don't think there
is anything of significance to creating managed ARXs that one language can
do that the other can't. The same is not true for C++/CLI; with that
language you get the best of both worlds: native C++ for custom objects with
easy access to the .NET framework.

Dan

"Bob" wrote in message
news:5313896@discussion.autodesk.com...
thanks for the replies.

does C# offer a way to do things that VB.net cannot do?

does C# offer a performance advantage?

i'm really not looking for specific syntax differences but more about
whether one offers functionality that the other does not.

i realize they both use the .net framework class lib but is there really any
advantage [in so far as what can be accomplished] to C# as opposed to
VB.net?


"Paul Richardson" wrote in message
news:5313592@discussion.autodesk.com...
Although originally, they were the same, 2005 has made strides
to put them in their own place. VB.net 2005 is more like VB6,
i.e. "Edit and Continue" although available in both this was driven
by VB and only added to C# at the last minute.

Next time you're in "Borders" or such check out ".Net Components
2nd Edition" by Juval Lowy. He gives a great description of the
two languages and their many differences in 2005. Basically he
equates VB to the quick and dirty RAD environment of VB6, and
C# to the contemplative "Enterprise" language of C++. You know
they way they should be... :smileyhappy:

"Bob" wrote in message
news:5313143@discussion.autodesk.com...
can someone please explain what [if any] advantages C# 2005 has over VB.NET
2005. I have read in several articles that there is not enough of a
difference between the two to necessarily consider one over the other
especially with the new 2005 versions.
*J. Daniel Smith
Message 9 of 14 (41 Views)

Re: C# 2005 vs VB.NET 2005

08-31-2006 01:44 PM in reply to: *Bob
For a particular individual, language does matter. You'll likely get
significantly more (and perhaps better) information on your questions
elsewhere. Many of the participants in this newsgroup have more-or-less
already decided which .NET language(s) they want to use for developing
AutoCAD applications using the .NET API wrappers.

Personally, I (much) prefer C# (or C++/CLI) over VB.NET; but that's mostly
because I know C++. There are also tools available that use .NET reflection
to do a (what can be a somewhat crude) translations between VB.NET and C#.

Dan

"Bob" wrote in message
news:5314615@discussion.autodesk.com...
it sounds as though everyone is saying language does not matter. C# does not
offer any functionality or performance advantages over VB.net?


"J. Daniel Smith" wrote in message
news:5314071@discussion.autodesk.com...
You can successfully use the .NET wrapper classes to create "managed ARXs"
for AutoCAD with either language.

Each language has various strengths and weaknesses, but I don't think there
is anything of significance to creating managed ARXs that one language can
do that the other can't. The same is not true for C++/CLI; with that
language you get the best of both worlds: native C++ for custom objects with
easy access to the .NET framework.

Dan

"Bob" wrote in message
news:5313896@discussion.autodesk.com...
thanks for the replies.

does C# offer a way to do things that VB.net cannot do?

does C# offer a performance advantage?

i'm really not looking for specific syntax differences but more about
whether one offers functionality that the other does not.

i realize they both use the .net framework class lib but is there really any
advantage [in so far as what can be accomplished] to C# as opposed to
VB.net?


"Paul Richardson" wrote in message
news:5313592@discussion.autodesk.com...
Although originally, they were the same, 2005 has made strides
to put them in their own place. VB.net 2005 is more like VB6,
i.e. "Edit and Continue" although available in both this was driven
by VB and only added to C# at the last minute.

Next time you're in "Borders" or such check out ".Net Components
2nd Edition" by Juval Lowy. He gives a great description of the
two languages and their many differences in 2005. Basically he
equates VB to the quick and dirty RAD environment of VB6, and
C# to the contemplative "Enterprise" language of C++. You know
they way they should be... :smileyhappy:

"Bob" wrote in message
news:5313143@discussion.autodesk.com...
can someone please explain what [if any] advantages C# 2005 has over VB.NET
2005. I have read in several articles that there is not enough of a
difference between the two to necessarily consider one over the other
especially with the new 2005 versions.
Distinguished Contributor
dmarcotte4
Posts: 195
Registered: ‎04-02-2005
Message 10 of 14 (41 Views)

Re: C# 2005 vs VB.NET 2005

08-31-2006 02:26 PM in reply to: *Bob
With C# you can use unsafe

unsafe class Class1
{
//you can use pointers here!
}

class Class1
{
//pointer
unsafe int * ptr;
unsafe void MyMethod()
{
//you can use pointers here
}
}

static void Main()
{
//can't use pointers here

unsafe
{
//you can declare and use pointer here

}
//can't use pointers here
}

other than this it all boils down to almost identical IL code
although I have read articles the VB.NET still uses a legacy runtime
and in some cases the IL code might be slightly longer hence more
to execute

ps I like C# coming from Lisp
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.