how to get enum by number c# code example Example: get enum value c# int something = (int) Question.Role;