I'm writing serialization for a third party library. I need to update this library with only replacing its files for the new ones, so I am unable to modify classes in those files. I need to deliver separate serialization files.
I must serialize protected members, should I make derived class, using it as a wrapper that can access protected members?