What is the proper naming convention in C# for the following user related properties?
Social Security Number: SSN or Ssn? Date of birth: DOB or Dob?
What is the proper naming convention in C# for the following user related properties?
Social Security Number: SSN or Ssn? Date of birth: DOB or Dob?
Acronyms consisting of more than two letters should capitalize only the first character (so that would be Ssn
and Dob
). Out of personal taste (and upon the advice of that MSDN page), I would either expand the terms to their full length (SocialSecurityNumber
or DateOfBirth
) or find alternative terms to use, as those don't look very appealing to me.
The general naming convention is no to use abbreviations. I think SocialSecurityNumber
and DateOfBirth
make much more sense than the acronyms.
If you do want the acronyms, use Ssn
and Dob
for three letters and more.