I have a enum
public enum TestType:int
{
Aphasia = 2,
FocusedAphasia = 5
}
with values set. I want to change the value of the enum ‘FocusedAphasia’ from 5 to 10. Can anyone help me in changing the value of enum at runtime
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.
You cannot change enums at runtime. I’m not sure why you’d ever need to, but in any case it’s not possible. Using a variable would be the alternative.