c# how to get the value of an enum code example
Example 1: get enum value c#
int something = (int) Question.Role;
Example 2: c# get value of object in enum
arrayName variable = (arrayName) index
//for example
Days day = (Days)3;
int something = (int) Question.Role;
arrayName variable = (arrayName) index
//for example
Days day = (Days)3;