Maybe new to C#?

B

Brad Allison

Okay, I am for the most part a VB programmer. Why would I want to learn C#?
Is there any advantages over C# and VB? And if I did want to pursue C#, can
anybody recommend any starting books.

Thanks,

Brad
 
T

Tom

IMHO, C# is currently much better than VB.NET. As I see it, C# provides the
following benefits over VB.NET:

1. Operator Overloads - This allows you to redefine ClassA + ClassB for
example on a custom class.

2. Conversion Overloads - This allows you to redefine what happens when you
convert one of your custom classes to something else.

Both of these are extremely cumbersome to even use in VB.NET. In other
words, if you create a business class with operator and/or conversion
overloads, it is very cumbersome to then use that class in VB.NET. This
makes refactoring very difficult.

3. C# is that is far more expansive in the features it supports than VB.
Currently, C# supports more of the IL functionality than VB.

4. C# is more Java/C++ like. That means it uses more universally accepted
language like abstract, static etc. You may ask why this is an advantage.
If the Microsoft universe collaspes (or collapses at your company) and you
have to learn Java, knowing C# will make that easier. Granted, this is a
weak argument, which is why it is listed last, but it is something to
consider.

Given all that, there are a couple of things you should know. There is no
performance different between the two languages. C# being case-sensitive
can be a bit of a chore to get used to if you are accustomed to
case-insensitive languages. Most material relating to the .NET Framework is
in either VB.NET or C# or both. So, knowing both languages is a benefit.
With new version of the Framework that is coming out, VB.NET and C# will be
much, much closer in feature sets and VB.NET will have Edit and Continue.
However, that new version is not expected for another year.


HTH,


Tom
 
B

Brad Allison

Sure does help, thank you. I think that C# is something I will definately
explore and in the words of Mame Dennis, "Knowledge is power."

Thanks again.

Brad
 

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

Similar Threads


Top