Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# Vs VB.Net
Message
De
13/06/2004 12:20:57
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00912422
Message ID:
00913243
Vues:
16
>Hi all
>
>For a VFP programer like me witch one between VB.net or C# should i learn
>
>TIA

Well, VB's syntax, blocking and flow control is much more simmilar to VFP's than C# is. Also, the code continuation is much more like VFP's in that a line ends at the end unless you continue it with an underscore. However, in C# you have to identity the end of each line with a semi-colon. That gets a bit annoying at first, but you get used to it.

Also, VB has the With...EndWith structure as in VFP, I really would like to see that in C#.

Also, you can code VB with option explicit off and much like VFP the syntax becomes less strictly typed. Well, that's not true, it's still strictly typed however where in C# or in VB with option explicit you may have to do some casting, in VB without option explicit VB takes care of the casting, however, I think this could lead to more runtime errors.

The major differences are in the IDEs. VB.Net has the background compiling, which while cool can REALLY slow down the IDE if you have a large project, and there is no way to turn it off. I think VB has a bit more code completion stuff too, like if you type if it puts the end if in for you. I think there are some other intellesense differences. (I don't use VB that much so I'm not 100% sure on all of them.)

But, as someone said, most of the learning curve is learning the framework base class libraries. This is what you really need to learn and it is the same in both languages. The syntax of either langague you'll probably have done within a month.

HTH,
BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform