Why is UnhandledExceptionEventArgs.ExceptionObject
an object and not an Exception
?
I am attaching to AppDomain.UnhandledException
.
I would like to cast UnhandledExceptionEventArgs.ExceptionObject
to an Exception
and interogate it.
And with this in mind will it ever be null?
The MSDN documentation is not exatly useful.
See Question&Answers more detail:osGets the unhandled exception object.