Is there a serializable generic Key/Value pair class in .NET?

前端 未结 10 1407
自闭症患者
自闭症患者 2020-11-29 01:59

I\'m looking for a key/value pair object that I can include in a web service.

I tried using .NET\'s System.Collections.Generic.KeyValuePair<> class, but it doe

10条回答
  •  余生分开走
    2020-11-29 02:47

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

    http://www.codeproject.com/Tips/314447/XmlSerializer-doesnt-work-with-Dictionaries-Oh-and

提交回复
热议问题