title: How to check if a class inherits another class without instantiating it?
body: <p>Suppose I have a class that looks like this:  </p>
  
  <pre><code>class Derived : // some inheritance stuff here
  {
  }
  </code></pre>
  
  <p>I want to check something like this in my code:  </p>
  
  <pre><code>Derived is SomeType;
  </code></pre>
  
  <p>But looks like <code>is</code> operator need Derived to be variable of type Dervied, not Derived itself.
  I don't want to create an object of type Derived.<br>
  How can I make sure Derived inherits <code>SomeType</code> without instantiating it?  </p>
  
  <p><strong>P.S.</strong> If it helps, I want something like what <code>where</code> keyword does with generics.<br>
  <strong>EDIT:</strong><br>
  Similar to <a href="https://stackoverflow.com/a/1528695/279982">this</a> answer, but it's checking an object. I want to check the class itself.</p>