I have an enumeration:
public enum MyColours { Red, Green, Blue, Yellow, Fuchsia, Aqua, Orange }
and I have a s
You can cast the int to an enum
(MyColour)2
There is also the option of Enum.Parse
(MyColour)Enum.Parse(typeof(MyColour), "Red")