Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming conventions
Message
From
30/10/2003 12:38:00
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Naming conventions
Miscellaneous
Thread ID:
00844602
Message ID:
00844602
Views:
45
As a reformed Hungarian Notation practitioner, I'm trying to decide on naming conventions to use in my C# code.

Given that it's a strongly-typed language, it makes much less sense to use an initial character to denote data type, so I've pretty much given up any kind of hungarian-ness in my coding.

However, two things I struggle with are:

I'd like some way to distinguish a local variable from a property or field of the class. I've gotten in the habit of always preceding field or property references with "this." which does the trick (and also allows IntelliSense to kick in), but not sure if this is being widely accepted.

The other thing is distinguishing private fields and their associated properties.

I've seen some folks using all lowercase for private fields and PascalCase or camelCase for the associated property, but this makes me a little uncomfortable, though I've used this approach.

What say ye all?
>>-Steve->>

Steve Sawyer
Geeks and Gurus, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform