title: C# Object Type Comparison
body: <p>How can I compare the types of two objects declared as type.</p>
  
  <p>I want to know if two objects are of the same type or from the same base class.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>e.g.</p>
  
  <pre><code>private bool AreSame(Type a, Type b) {
  
  }
  </code></pre>