title: When and where to use GetType() or typeof()?
body: <p>Why this works</p>
  
  <pre><code>if (mycontrol.GetType() == typeof(TextBox))
  {} 
  </code></pre>
  
  <p>and this do not?</p>
  
  <pre><code>Type tp = typeof(mycontrol);
  </code></pre>
  
  <p>But this works</p>
  
  <pre><code>Type tp = mycontrol.GetType();
  </code></pre>
  
  <p>I myself use <code>is</code> operator for checking type but my understanding fails when I use <code>typeof()</code> and <code>GetType()</code></p>
  
  <p>Where and when to use <code>GetType()</code> or <code>typeof()</code>?</p>