Share via


RuntimeHelpers Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides a set of static methods and properties that provide support for compilers. This class cannot be inherited.

Inheritance Hierarchy

System. . :: . .Object
  System.Runtime.CompilerServices..::..RuntimeHelpers

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class RuntimeHelpers
[SerializableAttribute]
public static class RuntimeHelpers
[SerializableAttribute]
public ref class RuntimeHelpers abstract sealed
[<AbstractClass>]
[<Sealed>]
[<SerializableAttribute>]
type RuntimeHelpers =  class end
public final class RuntimeHelpers

The RuntimeHelpers type exposes the following members.

Properties

  Name Description
Public propertyStatic member OffsetToStringData Gets the offset, in bytes, to the data in the given string.

Top

Methods

  Name Description
Public methodStatic member GetObjectValue Boxes a value type.
Public methodStatic member InitializeArray Provides a fast way to initialize an array from data that is stored in a module.
Public methodStatic member RunClassConstructor Runs a specified class constructor method.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Runtime.CompilerServices Namespace