Is it safe to use _ in class names?
What’s the best replacement for . in naming? (Currently I use _.)
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.
It’s safe to do so for one underscore at a time, although you shouldn’t use two consecutive underscores. From the C# language spec, section 2.4.2:
Personally I try to avoid type names with underscores anyway though… I’m not sure what you mean by “replacement for
.” though. If you could give some context, that would help.