In particular, the question arises: How to serialize a class with WCF that has (must have) interface types in property signatures, since it implements the interface?
This is a design issue. I'm not looking for a hack. The goal is to have separate interface definitions from class implementations and therefore not allow interfaces to refer to implementing classes.
I know that we should not transfer interfaces with WCF and also that there are still (incompatible) ways to do this (for example, using the NetDataContractSerializer or the ServiceKnownType attribute), but this leaves me with the question: is there a suitable way to use classes based on interfaces with WCF, or if it won't be an attempt at all?
source
share