The title says pretty much what I would like to know. I have data which was binary serialized and now I'm reading it again (class name remains the same) and I would like to know if the serializer misses something because, for example, a private backing field might have been renamed.
I did the following refactoring:
private string descriptionField;
public string Description
{
get { return this.descriptionField; }
}
to
public string Description { get; private set; }
As stated in in this article this won't work. But I really would like to know if there is a way to detect if the class does not match the serialized data.
I do not want to do the serialization myself via implementing ISerializable
because the class and its properties is quite large and might be changed. I'd prefer a easier solution =)