using System.Diagnostics;
public static void Main()
Console.WriteLine("Hello World");
private static void DoSomethingGoodHere() {
public static void PrintCallerName()
MethodBase caller = new StackFrame(1, false).GetMethod();
string callerMethodName = caller.Name;
string calledMethodName = MethodBase.GetCurrentMethod().Name;