Try to search your question here, if you can't find : Ask Any Question Now ?

Custom enum as application setting type in C#?

HomeCategory: stackoverflowCustom enum as application setting type in C#?
sourav asked 2 weeks ago

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.

1 Answers
Best Answer
naveen answered 2 weeks ago
Your Answer

7 + 4 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com