0

I am looking to get the current executing method in .NET Core 6

When using

System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName

the output is <MethodName>d__6

How to get only MethodName ?

What is d__6 ?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
George
  • 163
  • 2
  • 8
  • And [this](https://stackoverflow.com/a/62239621/2501279) and [this](https://stackoverflow.com/questions/72264331/what-is-invoked-40) – Guru Stron Oct 15 '22 at 14:27

1 Answers1

0

try this:

System.Reflection.MethodBase.GetCurrentMethod().Name;
Hossein Sabziani
  • 1
  • 2
  • 15
  • 20