Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Errrhhh ..... CSharp or VB
Message
 
 
À
23/09/2011 19:51:16
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01524423
Message ID:
01524596
Vues:
59
>>>>>>Are you using naming that reuses identifiers by changing case? Have you run out of all possible alphanumeric combinations or what?
>>>>
>>>>I do this routinely to simplify remembering form and report names:
>>>>FrmCustomer frmCustomer = new FrmCustomer();
>>>>
>>>>Is that frowned upon?
>>>
>>>Nope, that's precisely what is best practice in naming conventions... You can tell immediately from the casing what the scope of the variable is...
>>
>>The scope? I thought that in Bill's example it distinguished between a class type and an instance of a class. No?
>
>Yes in this example that's true.
>
>But:
>
>MyName
>myName
>_myName
>this.MyName
>
>are all valid names but the casing tells you the scope of the variable.

Please go on. I sincerely am in learning mode here. What is the scope of each of those?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform