RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Ensures that the type initializer (also known as a static constructor) for the specified type has been run.
public:
static void RunClassConstructor(RuntimeTypeHandle type);
public static void RunClassConstructor (RuntimeTypeHandle type);
static member RunClassConstructor : RuntimeTypeHandle -> unit
Public Shared Sub RunClassConstructor (type As RuntimeTypeHandle)
Parameters
- type
- RuntimeTypeHandle
A type handle that specifies the type for which a type initializer should be run.
Exceptions
The type initializer throws an exception.
Remarks
This method is used by compilers.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.