title: Performance of Object.GetType()
body: <p>We have lots of logging calls in our app.  Our logger takes a System.Type parameter so it can show which component created the call.  Sometimes, when we can be bothered, we do something like:</p>
  
  <pre><code>class Foo
  {
    private static readonly Type myType = typeof(Foo);
  
    void SomeMethod()
    {
       Logger.Log(myType, "SomeMethod started...");
    }
   }
  </code></pre>
  
  <p>As this requires getting the Type object only once.  However we don't have any actual metrics on this.  Anyone got any idea how much this saves over calling this.GetType() each time we log?</p>
  
  <p>(I realise I could do the metrics myself with no big problem, but hey, what's StackOverflow for?)</p>