Represents the exception thrown when type's class initializer throws an exception.
Object
Exception
SystemException
TypeInitializationException
[Visual Basic] NotInheritable Public Class TypeInitializationException Inherits SystemException [C#] public sealed class TypeInitializationException : SystemException [C++] public __gc __sealed class TypeInitializationException : public SystemException [JScript] public class TypeInitializationException extends SystemException
The TypeInitializationException class represents the exception that is thrown when the type's class initializer (.cctor) throws an exception.
When it is created, it is passed a reference to the exception thrown by the type's initializer.
The InnerException property holds the underlying exception.
Namespace: System
Assembly: mscorlib.dll