I have a problem with an object in my wcf project. I can say this object:
[DataContract(Name="ClassA")] public class Person{
Where ClassB is a child of ClassA on the other hand. Then I have a post method:
[OperationContract] [WebInvoke(UriTemplate= "Person", ResponseFormat = WebMessageFormat.Json, Method= "POST")] public string PostPerson(Person person) { if(person is Men){
The fact is that I receive a person (on the other hand, they send as ClassB), but the person Male returns false .. why?
source share