title: Why doesn't C# switch statement allow using typeof/GetType()?
body: <p>As in this example:</p>
  
  <pre><code>switch ( myObj.GetType ( ) )
  {
      case typeof(MyObject):
          Console.WriteLine ( "MyObject is here" );
          break;
  }
  </code></pre>