title: C# performance question: typeof(MyClass) vs. this.GetType()
body: <p>In the first example of the <a href="http://logging.apache.org/log4net/release/manual/configuration.html" rel="noreferrer">log4net configuration manual</a> the author uses <code>typeof(MyApp)</code> to get the type of the containing class <code>MyApp</code>. Is there a reason not to use <code>this.GetType()</code>, performance-wise? Because it seems to me that <code>this.GetType()</code> is much safer from potential copy-paste errors when copying into another class.</p>