title: Creating an interface to have a generic List object
body: <p>I have a data structure something like this:</p>
  
  <pre><code>public class HighLevelConversionData
  {
      public int customerID {get;set;}
      public string customerName {get;set;}
      public decimal amountSpent {get;set;}
  }
  </code></pre>
  
  <p>This data will be accessed by a third party and a GWT front end, meaning I'll be using web services to move the data around.  The customer is also of a different localisation than the dev team, so I'm wanting to send status messages as a wrapper for the returned data items, like so:</p>
  
  <pre><code>public class HighLevelConversionDataWrapper
  {
      public int StatusCode {get;set;}
      public string StatusMessage {get;set;}
      public List&lt;HighLevelConversionData&gt; {get;set;}
  }
  </code></pre>
  
  <p>However I'd rather have an interface for these methods to inherit from, to ensure we're always sending the statuscode &amp; message in the same way.  But my understanding of how generics work in an interface seems to be failing me.  I believe it should be something like:</p>
  
  <pre><code>public Interface IServiceWrapper
  {
      public int StatusCode {get;set}
      public string StatusMessage {get;set;}
      public List&lt;T&gt; ReturnedData {get;set;}
  }
  </code></pre>
  
  <p>But I've come unstuck here.</p>