KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Just curious as to why Dictionary is not supported by XmlSerializer ? You can get around it easily enough by using DataContractSerializer and writing the object to a XmlTextWriter , but what are the characteristics of a Dictionary that makes it difficult for a XmlSerializer to deal with considering it's really an array of KeyValuePairs. In fact, you can pass an IDictionary<TKey, TItem> to a method expecting an IEnumerable<KeyValuePairs<TKey, ITem>> .
Tags (comma-separated)
Save Edits
Cancel