Is C# more capable than VB.NET?

K

kris p

I have to implement a project in .NET which might entail some lower level technical
programming, and have to decide whether to use C# or VB.NET, is C# more capable
than .NET or they just synctatically different?

Thanks,
kristoff plasun
 
W

William Ryan eMVP

For 99% of tasks, they are functionally identical. However, C# allows the
use of unsafe code, so there is definitely some low level stuff that VB.NET
can't handle. I'm hesitant to say that one is more capable than the other
b/c that usually gets someone mad at me. Keep in mind that VB.NET does
support quite a bit, and you can still perform many many API calls with it,
but if the crux of your application will involve low level api calls, I
think C# is the more appropriate (and possibly only viable) solution.
 
C

Cor

Hi Kris,

I totally disagree with Bill, if you still have to choise and you do not
know what to take, than in your situation I think that the only choise can
be in this situation C# and if that does not fit C++.

The reason Bill has already told.

Not because C# is more cabable than VB.net, but just because what you told
is in my opinion one of the things where C# is better occupied for than
VB.net. (If you would ask by instance to implement an interop from Excel I
would give a totally different answer)

My 2 eurocents.

(Hi Kris, this to Bill, "This you did not expect")

:))

Cor
 
P

Paul Guides

Hi,

search for Q308470:

"Differences Between Visual Basic .NET and Visual C# .NET"

Paul
 
G

Guest

I have to implement a project in .NET which might entail some lower level
technical
programming, and have to decide whether to use C# or VB.NET, is C# more capable
than .NET or they just synctatically different?
Go for C# since it .NET DLL's might not be as compatible as they advertise
in their advertising.
The problem is case sensitivity and types. I think that C# could handle 3rd
party .NET dll's better if they do not conform to the standards.

Use FxCop to check your .NET code if it is compatible to other programs.
 
G

Guest

Not because C# is more cabable than VB.net, but just because what you told
is in my opinion one of the things where C# is better occupied for than
VB.net. (If you would ask by instance to implement an interop from Excel I
would give a totally different answer)
Totally agree, C# is built for .NET, all other languages have some very
strange constructs to make it compatible with .NET but reduces readability
dramatically.
Look at the C++ macro's for managed code.
 
C

Cor

Hi Olaf,
Totally agree, C# is built for .NET, all other languages have some very
strange constructs to make it compatible with .NET but reduces readability
dramatically.

That I did not say and do absolutly not agree, but I do not want to start a
thread but answer on the question from kris.

There have so often been a discussion in the C# and the VB.net languages
groups. Regulars from those newsgroup says that the use of those languages
is mostly only a matter of taste. Not faster, not more readable, not more
efficient, not better code, just a matter of taste and only in some parts of
the borders of the language one is more efficient than the other. But there
is not better one.

And the question from kris looks for me in that part of the border where C#
is more efficient.

Cor
 
D

Doknjas

I think that if you ever have more than 1 developer working with code,
that C# is much better - and I'm saying this as a former VB bigot.
Take arrays for instance - VB.NET has many different styles of array
declaration and initialization - apprarently to suit many kinds of
people and what they happen to be used to. C# hasn't been designed
to conform to everyone's idiosyncrasies, and therefore doesn't have
irritatingly many ways of doing one simple thing.
 
C

Cor

Hi Kris,

I said I did disagree with Bill that is only because he did not say it real
explicitly that C# was more capable in this case.

Cor
 

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

Top