Custom enum as application setting type in C#?

c#, enums, settings

Solution

I see this in VC# Express 2005. The Browse.. "Select a Type" dialog shows only the System and Microsoft namespaces. However if you insert the full name of the type into the Selected Type textbox it should accept it.

Problem

If have an enum in C#: ``` [Serializable] public enum OperatingSystem { Windows, Macintosh } ``` For my application I use the application settings, where I can select of which Type a setting should be. I thought when I select Browse, I could choose my enum or type the fully qualified path to select that enum as the Type. Edit: I set the type to my Enum, but in the Value (where Windows, Macintosh should be) only Windows is visible and i'm able to enter any string.

Original source

Related problems