Visual Studio Encapsulation Surprise

When you encapsulate a field using Visual Studio tool as shown, Visual Studio will try to put the first letter to upper case to follow naming conventions.  Now I declare fields with a underscore prefix e.g. _myField, but I have recently started to prefix with m_ inline with Pascal naming conventions I think.  To my surprise Visual Studio recognises these naming convention and showed me the correctly formatted property so m_PageSize = PageSize.  This may not be news for a lot of people but it was for me.  I would like to know the rules it has when encapsulating a field.

 

NamingConventionRefactor

Published Saturday, February 23, 2008 2:58 PM by REA_ANDREW
Filed under:

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required)