It would be really really really helpful to be able to serialize and work with Enum’s.
But whenever I try to use the EnumInfo class it is private and I get a warning. Is it private by mistake? This is such a fundamental framework issue I can’t believe isn’t properly addressed.
- I want to be able to serialize and deserialize classes but the lack of enum support is preventing a complete and robust solution.
- I would like to add some methods to:
a) return a string list of the enum options (for displaying in listbox for instance)
b) convert a string into its enum
c) convert an int value into its enum
d) convert an enum into its int value
e) convert an enum into its string value
f) convert an enum string into its int value
g) convert an enum int into its string value
^all in a generic way instead of constantly having to create and update helper methods to do this for every single enum type.