A
Adam Benson
Hi,
If MyClass has a property in it of type OldType and in the new versions of
our libs (long story) OldType is not available. Can I instruct the XML
deserializer to deserialize OldType into NewType?
// Serialized like this
public class MyClass
{
...
public OldType
{ get; set };
...
}
// Deserialize into this assuming the rest of MyClass is unchanged?
public class MyClass
{
...
// OldType was here, I want to deserialize OldType into NewType
public NewType
{ get; set };
...
}
Any pointers gratefully received.
Thanks,
Adam.
--
- Adam.
==============================
(e-mail address removed)
If MyClass has a property in it of type OldType and in the new versions of
our libs (long story) OldType is not available. Can I instruct the XML
deserializer to deserialize OldType into NewType?
// Serialized like this
public class MyClass
{
...
public OldType
{ get; set };
...
}
// Deserialize into this assuming the rest of MyClass is unchanged?
public class MyClass
{
...
// OldType was here, I want to deserialize OldType into NewType
public NewType
{ get; set };
...
}
Any pointers gratefully received.
Thanks,
Adam.
--
- Adam.
==============================
(e-mail address removed)