using System.Collections.Generic;
using System.Diagnostics;
public static void Main()
var stack = new StackTrace();
foreach (var frame in stack.GetFrames())
var methodInfo = frame.GetMethod();
Console.WriteLine("{0} (ReflectedType: {1})", methodInfo.ToString(), methodInfo.DeclaringType);