There was an error reflecting type - XML Serialization issue

前端 未结 4 561
轮回少年
轮回少年 2020-12-31 20:00

I have a Dictionary object which needs to be written into an XML file. The dictionary contains String type as Key and a custom class\'s Object (Deriving from System.Windows.

4条回答
  •  天涯浪人
    2020-12-31 20:15

    I used DataContractSerializer from System.Runtime.Serialization.dll. Serialized/deserialized my class with two Dictionary properties without any questions.

提交回复
热议问题