I have an enumeration:
public enum MyColours { Red, Green, Blue, Yellow, Fuchsia, Aqua, Orange }
and I have a s
As mentioned in previous answers, you can cast directly to the underlying datatype (int -> enum type) or parse (string -> enum type).
but beware - there is no .TryParse for enums, so you WILL need a try/catch block around the parse to catch failures.