title: Get the name of the currently executing method in dotnet core
body: <p>I want to get the name of the currently executing method in a dotnet core application.</p>
  
  <p>There are lots of examples of how to do this with regular c# eg</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/2051217/get-the-name-of-the-current-method">Get the name of the current method</a> </li>
  <li><a href="https://stackoverflow.com/questions/2652460/how-to-get-the-name-of-the-current-method-from-code">How to get the name of the current method from code</a> </li>
  </ul>
  
  <p>However the apis for both methods appear not to be there in core yet (see <a href="https://github.com/dotnet/corefx/issues/1420" rel="noreferrer">https://github.com/dotnet/corefx/issues/1420</a>)</p>
  
  <p>Is there another way I can get the executing method name in .net core?</p>