title: Enforce a base class implements a specific interface
body: <p>Is there a way for a child class to make sure the parent class implements a specific interface?</p>
  <pre><code>public interface ISomeInterface&lt;T&gt;
  {
     T DoSomething();
  }
  
  public class Parent : ISomeInterface&lt;SomeType&gt;
  {
     SomeType DoSomething(){}
  }
  
  public class Child : Parent
  {
       //Enforce the parent implements ISomeInterface&lt;T&gt;.
       var foo = DoSomething();  
  } 
  </code></pre>