c# enum with string and int values code example Example: get enum value c# int something = (int) Question.Role;