Static constructor exception vanishes
Hi all
Under the full .NET framework: if an exception is thrown from within a
static constructor, the CLR catches the exception, wraps it within a
TypeInitializationException and then throws the
TypeInitializationException.
However, the compact framework doesn't support the
TypeInitializationException. Instead a TypeLoadException is thrown,
but the original Exception seems to get lost.
Does anyone know what happens to the original exception?
Neil Walters.
Date:Mon, 20 Aug 2007 02:51:03 -0700
Author:
|