title: Inherited Class using as datacontract
body: <p>Actually I Have a Problem Using a Inherited Class as a DataContract. Below is My Code</p>
  
  <pre><code>[DataContract]
  public class PartialTestClass
  {
  }
  
  [DataContract]
  public class TestClass : PartialTestClass
  {
  }
  
  [ServiceContract(Name = "IMessageContract", 
  CallbackContract = typeof(IMessageCallback))]
  public interface IMessageContract
  {
      [OperationContract]
      PartialTestClass Test(PartialTestClass partialTestClass);
  }
  </code></pre>
  
  <p>Client Side:</p>
  
  <pre><code>PartialTestClass p = new TestClass();
  p.Name = "Afshin.Ahmari";
  TestClass p2 = (TestClass)Proxy.Test(p);
  </code></pre>
  
  <p>Can Anybody help me with this </p>