RuntimeHelpers Methods

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Namespace:   System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticEnsureSufficientExecutionStack()

Ensures that the remaining stack space is large enough to execute the average .NET Framework function.

System_CAPS_pubmethodSystem_CAPS_staticEquals(Object, Object)

Determines whether the specified Object instances are considered equal.

System_CAPS_pubmethodSystem_CAPS_staticExecuteCodeWithGuaranteedCleanup(RuntimeHelpers.TryCode, RuntimeHelpers.CleanupCode, Object)

Executes code using a Delegate while using another Delegate to execute additional code in case of an exception.

System_CAPS_pubmethodSystem_CAPS_staticGetHashCode(Object)

Serves as a hash function for a particular object, and is suitable for use in algorithms and data structures that use hash codes, such as a hash table.

System_CAPS_pubmethodSystem_CAPS_staticGetObjectValue(Object)

Boxes a value type.

System_CAPS_pubmethodSystem_CAPS_staticInitializeArray(Array, RuntimeFieldHandle)

Provides a fast way to initialize an array from data that is stored in a module.

System_CAPS_pubmethodSystem_CAPS_staticPrepareConstrainedRegions()

Designates a body of code as a constrained execution region (CER).

System_CAPS_pubmethodSystem_CAPS_staticPrepareConstrainedRegionsNoOP()

Designates a body of code as a constrained execution region (CER) without performing any probing.

System_CAPS_pubmethodSystem_CAPS_staticPrepareContractedDelegate(Delegate)

Provides a way for applications to dynamically prepare AppDomain event delegates.

System_CAPS_pubmethodSystem_CAPS_staticPrepareDelegate(Delegate)

Indicates that the specified delegate should be prepared for inclusion in a constrained execution region (CER).

System_CAPS_pubmethodSystem_CAPS_staticPrepareMethod(RuntimeMethodHandle)

Prepares a method for inclusion in a constrained execution region (CER).

System_CAPS_pubmethodSystem_CAPS_staticPrepareMethod(RuntimeMethodHandle, RuntimeTypeHandle[])

Prepares a method for inclusion in a constrained execution region (CER) with the specified instantiation.

System_CAPS_pubmethodSystem_CAPS_staticProbeForSufficientStack()

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.

System_CAPS_pubmethodSystem_CAPS_staticRunClassConstructor(RuntimeTypeHandle)

Runs a specified class constructor method.

System_CAPS_pubmethodSystem_CAPS_staticRunModuleConstructor(ModuleHandle)

Runs a specified module constructor method.

Return to top
Show: