We have an abstract class that is the base for a number of different requests we send over a WCF service. It's an ugly heinous hack that every time we add a new request we have to remember to add the [KnownType]
attribute to this base class.
Is there a way to tell the DataContractSerializer
to treat ALL derivations of this abstract type as a KnownType
?