how to get the value of an enum element in c# code example Example: get enum value c# int something = (int) Question.Role;