Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way of declaration
Message
De
06/08/2006 15:56:52
 
 
À
06/08/2006 12:49:48
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01143264
Message ID:
01143313
Vues:
10
Michel,

It's not that it's *wrong*, meaning it won't work ... but since it's not necessary to do, then it's simply redundant and I doubt if it makes it any clearer to the developer as to what is going on.

~~Bonnie


>>It's not wrong but it's not the proper way acording to that guideline.
>>I think there they mean new Collection() creates a Collection type already and no need to explicitly specify type. I wouldn't agree to those guidelines if I were a VB.Net coder, I'm not and I don't care:)
>
>Yes, my question was mostly to know if those guidelines are ok. For me, I always declare the type and the value. So, this is a better representation of the type of the property and its default value. It is much easier for a developer to follow. It surprised me when I saw that on their Web site.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform