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.