3
Vote

AV1075 Don’t prefix member fields

description

comments

rnofenko wrote Sep 4, 2013 at 6: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 7: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 7:09 AM

*Prefixes _ and m_