RuntimeHelpers Class
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides a set of static methods and properties that provide support for compilers. This class cannot be inherited.
Assembly: mscorlib (in mscorlib.dll)
The RuntimeHelpers type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | GetHashCode | 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 stored in a module. |
![]() ![]() | RunClassConstructor | Runs a specified class constructor method. |
Show:


