How can we get another type of object while deserialization in DataContractSerializer?

96 Views Asked by At

In case of versioning of object, if the old version object is serialized and now I need deserialized object of new version.

I have checked over internet and observed that we can use SerializationBinder for that purpose. But I have no idea how can I use this with DataContractSerialzer.

This binder can be assigned to the BinaryFormatter using Binder property.

Is anything similar present with the DataContractSerializer?

Please let me know if there is any other way to achieve this.

Please correct me, if I assumed anything wrong in this.

0

There are 0 best solutions below