title: Get inheritance tree of type
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1524562/to-get-parent-class-using-reflection-on-c">To get parent class using Reflection on C#</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to find an easy way of getting the inheritance tree of a certain type using reflection in C#.</p>
  
  <p>Let's say that I have the following classes;</p>
  
  <pre><code>public class A
  { }
  
  public class B : A
  { }
  
  public class C : B
  { }
  </code></pre>
  
  <p>How do I use reflection upon type 'C' to determine that its superclass is 'B', who in turn comes from 'A' and so on?  I know that I can use 'IsSubclassOf()', but let's assume that I don't know the superclass that I am looking for.</p>