title: How can I define an interface method whose different implementation can return <T>, List<T>, List<List<T>> where T is a custom class
body: <pre><code>interface IParser
  {
       return type parseData(list&lt;byte&gt; data);
  }
  </code></pre>
  
  <p>Where return type can be a <code>T</code>, <code>List&lt;T&gt;</code> or <code>List&lt;List&lt;T&gt;&gt;</code> </p>