Is there a way to specify external annotations for types to be serialized, instead of using attributes, use an external class to define serialization? E.g. when class to be serialized is defined in assembly I do not have control of.