|
-
August 4th, 2008, 10:55 AM
#1
Xml Serialization case insensitive for enum
I have an xml file used to load settings into my program. One of the settings is the logging level. If the user can't get the program to start, I'll often ask them to manually change the level from "Off" to "Debug". The problem is that is the user writes "debug" deserialization fails because the lower case isn't expected. Is there an extra flag I can set on this property to let the Xml reader know that it should convert to the enum value without regard to case?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|