Gets a string representation of the frames in the call stack, the most recent frame in the call stack is first.
string StackTrace { get; }
The StackTrace property provides a string that contains the name of each method in the call stack,
along with the file name and line number where the exception occurred. The frames are listed in order, from
the most recent call to the earliest call. If the stack trace information is not available, this property
returns an empty string.
The information in the stack trace is useful for debugging and diagnosing problems by showing the sequence of method calls that led to an exception.