Click here to Skip to main content
15,895,813 members
Articles / Programming Languages / C#

XmlSerializer doesn't work with Dictionaries. Oh, and it has problems with KeyValuePairs too.

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
13 Jan 2012CPOL1 min read 45.9K   3  
XmlSerializer complains if you try to serialize anything which implements IDictionary. This provides a way of serialising them which (if not capable of restoring the exact dictionary content) restores the actual field contents in a new dictionary.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions