RuntimeHelpers Methods
.NET Framework 4.5
The RuntimeHelpers type exposes the following members.
| Name | Description | |
|---|---|---|
|
EnsureSufficientExecutionStack | Ensures that the remaining stack space is large enough to execute the average .NET Framework function. |
|
Equals(Object, Object) | Determines whether the specified Object instances are considered equal. |
|
ExecuteCodeWithGuaranteedCleanup | Executes code using a Delegate while using another Delegate to execute additional code in case of an exception. |
|
GetHashCode(Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures such as a hash table. |
|
GetObjectValue | Boxes a value type. |
|
InitializeArray | Provides a fast way to initialize an array from data that is stored in a module. |
|
PrepareConstrainedRegions | Designates a body of code as a constrained execution region (CER). |
|
PrepareConstrainedRegionsNoOP | Designates a body of code as a constrained execution region (CER) without performing any probing. |
|
PrepareContractedDelegate | Provides a way for applications to dynamically prepare AppDomain event delegates. |
|
PrepareDelegate | Indicates that the specified delegate should be prepared for inclusion in a constrained execution region (CER). |
|
PrepareMethod(RuntimeMethodHandle) | Prepares a method for inclusion in a constrained execution region (CER). |
|
PrepareMethod(RuntimeMethodHandle, RuntimeTypeHandle[]) | Prepares a method for inclusion in a constrained execution region (CER) with the specified instantiation. |
|
ProbeForSufficientStack | Probes for a certain amount of stack space to ensure that a stack overflow cannot happen within a subsequent block of code (assuming that your code uses only a finite and moderate amount of stack space). We recommend that you use a constrained execution region (CER) instead of this method. |
|
RunClassConstructor | Runs a specified class constructor method. |
|
RunModuleConstructor | Runs a specified module constructor method. |