Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding Checkbox to nchar column
Message
From
26/01/2010 14:27:49
 
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01445996
Message ID:
01446047
Views:
33
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform