I have a data contract that serializing using protobuf-net.
[ProtoContract]
public class Cat
{
[ProtoMember(1)]
public Friend[] Friends { get; set; }
}
Last time a decide to refactor them and move some properties to base class, like:
[ProtoContract]
public class Cat : Animal
{
// other props
}
public abstract class Animal
{
[ProtoMember(1)]
public Friend[] Friends { get; set; }
}
After this I found that property Friends not deserializing from previous seralized data. How can I perform refactoring like this without breaking change?