I was wondering if I can get the caller of the method that caused an exception in .Net Core
For example:
There is a method called CallerMethod()
in the Main Window Window_Loaded
event which calls another method in which I'm catching the exception.
I need to get CallerMethod
name without all the Environment.StackTrace
information. Furthermore, exception.StackTrace
only shows the method that throws the exception and not the call stack
I hope that I've properly explained the issue.