When doing a backing field for a property what are the common naming schemes?
Edit: make question specific to .net
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Conventions differ from language to language.
In Delphi, there’s a very strong convention that internal member variables are prefixed with “F” for “Field”.
In C++, there’s a similar convention specifying underscore
_as the prefix.Lots of C# developers use
_orm_for members, though it’s my understanding that Microsoft officially discourages this.Update: Corrected an embarrasing mistake – the Delphi convention is
Ffor field, notmforMember.