Talk:Coding guideline - Common rules

From Catglobe Wiki
Revision as of 03:18, 9 December 2008 by Catglobe (talk | contribs) (Private member variables)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Private member variables

I would like that we have _camelCase as allowed for this specific case. It makes it easier to see in code when people are using private variables, using this. or not

=> a section for naming private/protected member's fields has been added into 3.4.1

Camel case preceding by an underscore '_' for private/protected fields:

public class SomeClass
{
private int _number;
protected string _name;
}