get enum value from name c# code example
Example 1: get enum by index c#
//Returns the enum value at the index
(EnumType)int;
//returns the string of the enum value at the index
(EnumType)int.ToString();
Example 2: c# get value of object in enum
arrayName variable = (arrayName) index
//for example
Days day = (Days)3;