A manual from MSFT and other style guides for the private fields of an instance of _memberName (camel case notation prefixed with " _" ). This is also the convention used in the source code of many recent Microsoft tutorials.
I use it because it is shorter and not Hungarian, and R # usually supports it by default for instance private fields.
I also like it because it looks like it closes Intellisense's private fields, as it should be, since you must first contact your public members first. If I want to access the property name, and I start typing " Na ", the first sentence is the property name of the public instance with pascal. In rare cases, when I want to access a private field directly, it makes me make a conscious decision to start typing " _ ", then I get a complete list of my personal fields in the Intellisense popup.
I also saw a guide saying that it should be _MemberName if it is a support field for a public property named MemberName (notation in Pascal-case with the prefix " _ "). I personally do not like this because I think that the capital M is redundant, adds extra keystrokes and does not add additional information.
source share