This project is read-only.

AV1075 Don’t prefix member fields



rnofenko wrote Sep 4, 2013 at 7:41 AM

Hi,Guidline recommends to avoid prefix in member fields, only I didn't find recommendations for keyword 'this'.

kirmir wrote Sep 4, 2013 at 8:04 AM

When we use the same style for private fields and local variables, it's difficult to understand code. Moreover, you have to use "this" in constructor in order to initialize fields. On the other hand, Microsoft uses prefixes like "" and "m" in the .NET Framework that makes reading code simpler.

kirmir wrote Sep 4, 2013 at 8:09 AM

*Prefixes _ and m_