2
0
mirror of synced 2025-01-10 16:46:05 +00:00
cs-codex-dist-tests/Utils/DebugStack.cs
2023-04-25 11:31:15 +02:00

13 lines
248 B
C#

using System.Diagnostics;
namespace Utils
{
public class DebugStack
{
public static string GetCallerName(int skipFrames = 0)
{
return new StackFrame(2 + skipFrames, true).GetMethod()!.Name;
}
}
}