/// <summary>Runs a specified class constructor method.</summary>
/// <param name="type">A <see cref="T:System.RuntimeTypeHandle" /> specifying the class constructor method to run. </param>
/// <exception cref="T:System.TypeInitializationException">The class initializer threw an exception. </exception>
public static void RunClassConstructor(RuntimeTypeHandle type)
{
if (type.Value == IntPtr.Zero)
{
throw new ArgumentException("Handle is not initialized.", "type");
}
RuntimeHelpers.RunClassConstructor(type.Value);
}