Can an enum value be saved as a setting, using the Properties.Settings.Default["MySetting"] syntax of C#? I tried to create a setting in my project’s property pages, but only system classes appeared in the list of available types.
If it can be done, how do I do it? Thanks in advance for your help.
just store it as an int and convert it when needed.
If you feel the need you can use
Enum.IsDefined(typeof(MyEnum), value)to make sure it is valid. You can also store a string value so that it is in a human-readable format in your config file: