Camel Case / Pascal Case / Class Properties

I try to use camel case for variables and pascal case for classes and their methods. But, for properties within a class, what is the "current" style preference?
LVL 9
GivenRandyAsked:
Who is Participating?
 
AlexFMConnect With a Mentor Commented:
Look at any .NET class. For example, ContextMenu (opened just now in my MSDN Library). Properties:
Handle
IsParent
MdiListItem
...

If you are interesting in programming style issues, use FxCop program, recommended for every .NET developer:
http://www.gotdotnet.com/Team/FxCop/
0
 
newyuppieConnect With a Mentor Commented:
sometimes you will have a property that encapsulates a private variable. i believe the guidelines are

Private _MyVar as Integer

Public ReadOnly Property MyVar as Integer
...
...
End Property

so variables which are encapsulated by properties you add an underscore to their private declaration.
0
All Courses

From novice to tech pro — start learning today.