System.Environment.StackTrace
Will give you the current stack as a string.
You can also use the StackTrace class as others have pointed out if you have more advanced needs.
System.Environment.StackTrace
Will give you the current stack as a string.
You can also use the StackTrace class as others have pointed out if you have more advanced needs.