Understanding ServiceKnownType in WCF
- by SLC
I am having a little trouble understanding ServiceKnownType in WCF.
Taken from this blog, the following code does not work:
[DataContract(Namespace = “http://mycompany.com/”)]
public class Shape{…}
[DataContract(Namespace = “http://mycompany.com/”)]
public class Circle : Shape {…}
[ServiceContract]
public interface IMyServer
{
…