I need to be able to transfer types unknown to the application at compile-time. For this I figured I could use the dataContractSerializer tag in the app.config and add the types as known types. This works as long as the types added are subtypes of a concrete or abstract class which is not System.Object.
However, I do not want to impose this restriction, in fact I would like the service contract to simply specify that an IEnumerable<object> (or alternatively IEnumerable<MyInterface>) should be transferred and then add the concrete classes as known types in the config file.
It can be done using the ServiceKnownType attribute at compile time, but this does not seem to be available in the configuration file.
Does anyone know of a way around this.
View Complete Post