How to print the current Stack Trace in .NET without any exception?
03:12 10 Feb 2009

I have a regular C# code. I have no exceptions. I want to programmatically log the current stack trace for debugging purpose. Example:

public void executeMethod() 
{
    logStackTrace();
    method();
}
c# .net logging stack-trace printstacktrace