Answer the question
In order to leave comments, you need to log in
Is it possible to transparently serialize inherited types in WCF?
I am using WebServiceHost to implement a RESTful service. There is a ProxyClass contract, which the server and the client know about, it looks, let's say, like this:
[DataContract]
class ProxyClass
{
[DataMember]
public virtual string Property1 { get; set; }
[DataMember]
public virtual int Property2 { get; set; }
}
class ProxyClassServer: ProxyClass
{
public override Property1 {
get { return "Test!"; }
set { }
}
}
Answer the question
In order to leave comments, you need to log in
The same situation is described here , but the author solved the problem “on the forehead” - by recreating the object.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question