.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. System.Runtime.CompilerServices
  3. RuntimeHelpers
  4. Box(Byte, RuntimeTypeHandle)
  • RuntimeHelpers
    • CleanupCode
    • TryCode
    • OffsetToStringData
    • AllocateTypeAssociatedMemory(Type, Int32)
    • Box(Byte, RuntimeTypeHandle)
    • CreateSpan<T>(RuntimeFieldHandle)
    • EnsureSufficientExecutionStack()
    • Equals(Object, Object)
    • ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, Object)
    • GetHashCode(Object)
    • GetObjectValue(Object)
    • GetSubArray<T>(T[], Range)
    • GetUninitializedObject(Type)
    • InitializeArray(Array, RuntimeFieldHandle)
    • IsReferenceOrContainsReferences<T>()
    • PrepareConstrainedRegions()
    • PrepareConstrainedRegionsNoOP()
    • PrepareContractedDelegate(Delegate)
    • PrepareDelegate(Delegate)
    • PrepareMethod(RuntimeMethodHandle)
    • PrepareMethod(RuntimeMethodHandle, RuntimeTypeHandle[])
    • ProbeForSufficientStack()
    • RunClassConstructor(RuntimeTypeHandle)
    • RunModuleConstructor(ModuleHandle)
    • SizeOf(RuntimeTypeHandle)
    • TryEnsureSufficientExecutionStack()
net9.0
namespace System.Runtime.CompilerServices
{
    public static class RuntimeHelpers
    {
        public static object? Box(ref byte target, RuntimeTypeHandle type);
    }
}
nuget.org
0.0 %
Reference this API
Design Reviews
  • dotnet/runtime#97341 one year ago (Approved)
.NET 9.0
Information specific to net9.0
Assembly

System.Runtime , Version=9.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Referencing

The API is automatically referenced.

Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

03/18/2025
An error has occurred. This application may no longer respond until reloaded. Reload 🗙