In Visual Studio — well, I am using Visual Studio 11 Beta, so that might be the issue — I think I am coding enums ok. But while this works:

This does not work:

What is wrong?
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.
Nothing to do with the VS11 beta. You just have to prefix with the enum name: