Click here to Skip to main content
15,914,452 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.
4.60/5 (4 votes)
13 Jan 2012CPOL 14.1K  
Why not use the DataContractSerializer instead?Dictionary dict = new Dictionary();dict.Add("myKey", "myValue");MemoryStream memoryStream = new MemoryStream();DataContractSerializer serializer = new...

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
Web Developer
Ireland Ireland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions