title: Compare two Types
body: <p>I've got a class looks quite like this:</p>
  
  <pre><code>object value;
  Type type;
  </code></pre>
  
  <p>When I create the object I set the type to the type of the Object.</p>
  
  <p>How can I compare this type with another type?</p>
  
  <p>If for example the type is <code>String</code>: </p>
  
  <pre><code>type.Equals(String)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>type == String 
  </code></pre>
  
  <p>does not work.</p>