Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding Checkbox to nchar column
Message
De
26/01/2010 14:27:49
 
 
À
26/01/2010 13:55:04
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01445996
Message ID:
01446047
Vues:
34
>Interesting that all three of us tend to use hungarian notation for UI controls - and your point re: Intellisense is a good one. Not sure I go along with the 'm_' part though (definitely smacks of the VFP fieldname/variable name connotation) :-}

Here's why I use "m_" for private/protected members that I intend to expose as properties:

1) I got used to doing that in the old 1.1 days, before "automatic" properties came along. And, to be honest, I haven't really "adopted" automatic properties much because I don't like to "mix-and-match" the two syntaxes. Sure, they're convenient for when you have nothing in your getters/setters, but if you do then you have to revert to using the original syntax.

2) I don't like the alternative, which is using casing. Too hard to make the distinction between member and property that way (IMHO).

private bool isOK;
public bool IsOK { get {return isOK;} set {isOK = value;}}

Oh, and the other alternative I see people using is even worse, IMHO ... _IsOK and IsOK. yuk!

~~Bonnie
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