using System; class MainClass { public static void Main() { Console.WriteLine("Stack Trace: {0}", Environment.StackTrace); } }
Stack Trace: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at MainClass.Main()