1.

What Happens If A Static Constructor Throws An Exception?

Answer»

If a STATIC constructor throws an exception, the runtime will not INVOKE it a second time, and the type will remain uninitialized for the LIFETIME of the application DOMAIN in which your program is running.

If a static constructor throws an exception, the runtime will not invoke it a second time, and the type will remain uninitialized for the lifetime of the application domain in which your program is running.



Discussion

No Comment Found