Settings and StringDictionary

  • Thread starter Simon Dahlbacka
  • Start date
S

Simon Dahlbacka

I was trying to use the built in settings management and added a
User-scoped setting of type
System.Collections.Specialized.StringDictionary

I run my application, updated the Settings, did Settings.Default.Save()
and when started the app again I noticed the new settings did not work!

Looking in the created user.config, the StringDictionary was serialized
to the immensely useful <value />

I assume this has to do with the fact that IDictionary is not
XmlSerializable, but why does it *fail silently*? Or is there something
I'm missing here?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top