Hi,
I'm starting on a new project to develop Windows application run on
the .NET Frame work. Would you please give me some justifications to
present to management on why we should use C# over Visual Basic .NET.
Right now we don't have any code written for the .NET yet and this
would be a new project.
I preferred C# because my background in programming is in C#/C++/C/Pro
C and Java.
Thank you in advance.
Jack
Cor Ligthert - 30 Apr 2004 15:51 GMT
Hi Jack,
> I preferred C# because my background in programming is in C#/C++/C/Pro
> C and Java.
Good reason, there are not more.
Cor
Jon Skeet [C# MVP] - 30 Apr 2004 16:04 GMT
> > I preferred C# because my background in programming is in C#/C++/C/Pro
> > C and Java.
> Good reason, there are not more.
There are, although they don't affect everyone.
If you really want to overload operators or write managed but unsafe
code, and you don't want to wait for Whidbey, you can't use VB.NET.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Cor Ligthert - 30 Apr 2004 17:14 GMT
Hi Jon,
If you want to read something about it, I can advise you this site, it is
written by a C# adept, however it is much more at the point than in the
past.
http://www.pobox.com/~skeet/csharp/faq/#vb.or.csharp
Cor
Cor Ligthert - 30 Apr 2004 17:18 GMT
Hi Jon,
I had sended this before I saw you had sended it also.
:-)
I read top down today.
Cor
Thomas Jespersen - 30 Apr 2004 15:54 GMT
Hello Jack
Small things like:
C# has XML Comment option, which VB.NET just can't do.
The C# compiler has more errors and warnings e.g. it detects if part of you
code is not reachable.
C# is a native .NET language. In VB.NET you have several way of doing the
same things, because it history, e.g. Loop... While/End While. And
CInt(myString)/Convert.ToInt32(myString).
VB.NET has background compile, which is great but requires a fast machine.
VB.NET has automatic code indent (in C# you have to delete and type the
ending } again).
I my opinion VB.NET programmers are likely to be cheaper, but more focused
on RAD. C# Developers are likely to be more dedicated to programming.
In the Next Version of VS.NET C# is a superior language, because it has
refractoring and VB.NET has not. VB.NET was supposed to be the only language
which would get Edit-And-Continue... but I look likes C# is getting this as
well.
With you background I would chose C# anytime. With a VB.NET background I
would also chose C# if I was going to write big solutions, and spend 14 days
on learning the difference between C# and VB.NET (it took me 3 days!).
BTW: I'm a VB.NET developer.
PS: I would love if Microsoft synchronized the two languages, so these small
things was a argument for choosing one language over another.
Thomas
> Hi,
>
[quoted text clipped - 11 lines]
>
> Jack
Marina - 30 Apr 2004 17:47 GMT
There are add ins that can be downloaded that will allow VB.NET to do all
the XML comment stuff, but yes, it's more of a pain and doesn't come
installed.
> Hello Jack
>
[quoted text clipped - 44 lines]
> >
> > Jack
Thomas Jespersen - 30 Apr 2004 21:31 GMT
Hello Marina
I've seen these. But the ones I've seen doesn't include the comments when
compiling, so that you can see the comments in intelliscense. You can only
get an XML file, which you can compile into a help file.
Thomas
> There are add ins that can be downloaded that will allow VB.NET to do all
> the XML comment stuff, but yes, it's more of a pain and doesn't come
[quoted text clipped - 53 lines]
> > >
> > > Jack
Jon Skeet [C# MVP] - 30 Apr 2004 16:01 GMT
> I'm starting on a new project to develop Windows application run on
> the .NET Frame work. Would you please give me some justifications to
[quoted text clipped - 5 lines]
> I preferred C# because my background in programming is in C#/C++/C/Pro
> C and Java.
That's a pretty good reason, to be honest.
See http://www.pobox.com/~skeet/csharp/faq/#vb.or.csharp for some more
reasons in each direction.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
William Ryan eMVP - 30 Apr 2004 17:25 GMT
There's very little reason to choose one over the other. VB.NET has a much
friendlier IDE. C# allows unsafe code blocks and operator overloading and
XML Comments. If you use Option Strict in VB.NET, performance is virtually
identical.
You can mix projects in a solution. All breaks donw to the same code by and
large. If you are going ot use .NET, learn the FRAMEWORK. Learn ADO.NET.
Syntax is trivial. I see too much terrible code in both languages to
advocate one over hte other (I use C# b/c I knew C++ and Java and that's
it). A top notch C# developer can learn VB.NET in a week or two and vice
versa. A top notch VB6 or VC++ programmer can't learn either language in a
week or two, it'd take a good half a year to really know your stuff.
So basically tell them that the summation of the distinction between the two
languages doesn't amount to a hill of beans in most instances. If you use
one and don't like it, you can swtich to the other, and still use your old
code. VB.NET and C# live very happily together in the same solution.
> Hi,
>
[quoted text clipped - 11 lines]
>
> Jack