title: MethodBase.GetCurrentMethod() Performance?
body: <p>I have written a log class and a function as in the following code:</p>
  
  <pre><code>Log(System.Reflection.MethodBase methodBase, string message)
  </code></pre>
  
  <p>Every time I log something I also log the class name from the methodBase.Name and methodBase.DeclaringType.Name.</p>
  
  <p>I read the following post <a href="https://stackoverflow.com/questions/1466740/using-getcurrentmethod-in-supposedly-high-performance-code">Using Get CurrentMethod</a> and I noticed that this method is slow.</p>
  
  <p>Should I use the this.GetType() instead of System.Reflection.MethodBase or I should manually log the class/method name in my log e.g. Log("ClassName.MethodName", "log message)? What is the best practice?</p>