How do you name your private Fields ?
Posted
Fri, May 13 2005 2:00
by
bill
must be a slow news day, <g> No seriously, I'm interested in hearing how people name their private fields such as a backing field for a property.
Do you use:
(1) m_PascalCasing
(2) m_camelCasing
(3) mPascalCasing
(4) mcamelCasing
(5) _PascalCasing
(6) _camelCasing
(7) other ???
I use (1). The reasons is easy if I use a process of elimination.
5 & 6 are out. See http://msmvps.com/bill/archive/2004/06/02/7466.aspx for reasons
2 is out because it is easy to confuse with m_hungarianPascalCasing
4 is out because it is easy to confuse with mhungarianPascalCasing
3 is not too bad, but still looks a tad hungarian
and then there was 1 
Waht do you use ?