What happen if a static constructor throws and exception and it is not handled?
Will it remain till the application domain alive?
An unhandled exception in a static constructor, will be wrapped in a TypeInitializationException
. If you're on .NET 2 or newer an unhandled exception will terminate the process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With