title: Get the name of the current executing function from within the function in C#
body: <p>Is there a way to programatically get the name of which method or property the current code is executing under?</p>
  
  <p><code>
  void Test()
  {
  MessageBox.Show("This is a message from " + GetNameOfCurrentMethod);
  }
  </code></p>
  
  <p>I thought about throwing an exception, catching it and parsing the stack trace but there should be a better way to do this.</p>