cs-codex-dist-tests/Framework/Utils/DebugStack.cs

13 lines
248 B
C#
Raw Normal View History

2023-04-25 09:31:15 +00:00
using System.Diagnostics;
namespace Utils
{
public class DebugStack
{
public static string GetCallerName(int skipFrames = 0)
{
return new StackFrame(2 + skipFrames, true).GetMethod()!.Name;
}
}
}