c# get item in enum code example
Example 1: c# get enum in list
Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>();
Example 2: get enum value c#
int something = (int) Question.Role;
Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>();
int something = (int) Question.Role;