title: Using protobuf-net with inheritance and interface
body: <p>I have a proto contract as follows:</p>
  
  <pre><code>[ProtoContract]
  public MyContract: ContractBase
  {
     [ProtoMember(1)] 
     List&lt;IMyDto&gt; MyData
    {
        get;
       set;
    }
  }
  </code></pre>
  
  <p>My IMyDto looks like this and its implemenation MyDto</p>
  
  <pre><code>[ProtoInclude(600, typeof(MyDto))]
  public interface IMyDto
  {
     int MyData
     {
      get;
      set;
     }
  }
  [ProtoContract]
  public class MyDto :IMyDto
  {
     [ProtoMember(1)]
     int MyData
     {
      get;
      set;
     }
  }
  </code></pre>
  
  <p>Finally, my ContractBase looks like this:</p>
  
  <pre><code>[ProtoContract]
  [ProtoInclude(500, typeof(MyContract))]
  public class ContractBase
  {
     [ProtoMember(501)]
     public string[] ErrorMessages
     {
       get;
       set;
     }
   }
  </code></pre>
  
  <p>When I make the web service call, I keep getting the following error:</p>
  
  <p><strong>It was not possible to prepare a serializer for: ContractBase ---> System.InvalidOperationException: No serializer defined for type: IMyDto</strong></p>
  
  <p>Please note that this is a simplified version of code for understanding the problem. </p>
  
  <p>Please let me know what I'm doing wrong? 
  Any help is much appreciated. </p>
  
  <p>Thanks.</p>