/ Framework / Utils / DebugStack.cs
DebugStack.cs
 1  using System.Diagnostics;
 2  
 3  namespace Utils
 4  {
 5      public class DebugStack
 6      {
 7          public static string GetCallerName(int skipFrames = 0)
 8          {
 9              return new StackFrame(2 + skipFrames, true).GetMethod()!.Name;
10          }
11      }
12  }