Using .NET 4 / C # ...
I need to deserialize old configuration files containing a serialized representation of a type named, say, ns1.X. Serialization is performed using the BinaryFormatter
.
The problem is that after the refactoring round, type X was moved to another namespace, for example ns2.X.
I tried to create a new empty type ns1.X that comes from ns2.X, and although it bypasses the error βCannot find type ns1.Xβ, the properties in the deserialized object are all null
. In addition, calls are not called during the call.
Any suggestions?
source share