Which name is more consistent with .NET naming standards for properties and methods?
1.
public string XRef { get; set; }
2.
public string Xref { get; set; }
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.
I would say the first – the “X” is effectively a separate word (cross). This is a bit like the
CDataclass (andXCData). It does look a bit odd, but I think it’s worth indicating that the “R” is effectively the start of a word.On the other hand, for a variable I’d probably use
xrefrather thanxRef, simply because that latter looks really weird.