c# print enum to have integer value code example
Example 1: c# enum to int array
int[] b = Array.ConvertAll((int[])Enum.GetValues(typeof(TestEnum)), Convert.ToInt32);
Example 2: c# get value of object in enum
arrayName variable = (arrayName) index
//for example
Days day = (Days)3;