Using [XmlAnyElement]

前端 未结 3 1851
情话喂你
情话喂你 2021-01-20 19:07

I\'m trying to preserve data on two different versions of an object and not having any success with it. Can anyone tell me what I\'m doing wrong?

Version One of the

3条回答
  •  逝去的感伤
    2021-01-20 19:35

    If this is a requirement of your application, you could add a method decorated with the OnDeserializing attribute and then implement your own logic to add missing fields to the XmlElement collection.

提交回复
热议问题