The DataContractSerializer has a lot of constructor overloads , and I would like to indicate how my WCF service should initialize the used DataContractSerializer. How would you do that? Is it easier to configure this in a .config file or in C #?
The WCF service always uses this by default .
If possible, provide an example of how to specify a DataContractSerializer using this constructor for KnownTypes.
source
share