Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming guidlines
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00741499
Message ID:
00741719
Views:
30
A common way of naming Fields that have a cooresponding Property is to prefix the field name with an underscore {"_"}. For the Property name of "MyName" the field equivalent would be "_MyName".

>>Hi Paul,
>>
>>Keep in mind that by using your naming convention it won't be compliant to inherit from these classes for languages that are case insensitive like VB .NET. Microsoft does not encourage using this naming convention and it could limit your classes in the future.
>>
>
>
>Hmmm...hadn't even thought of that. Dang, I was just getting used to it ;-) It's hard enough coming up with good property names, much less having to come up with two different versions of them. I'm thinking maybe I'll ignore the other MS guideline about not prefixing fields. I need something consistent otherwise I'll go nuts trying to remember which is which (hmm....was it Red or RedValue I wanted?).
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform