RuntimeHelpers.Box(Byte, RuntimeTypeHandle) 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据位于目标引用的数据创建指定类型的装箱对象。
public:
 static System::Object ^ Box(System::Byte % target, RuntimeTypeHandle type);public static object? Box(ref byte target, RuntimeTypeHandle type);static member Box : byte * RuntimeTypeHandle -> objPublic Shared Function Box (ByRef target As Byte, type As RuntimeTypeHandle) As Object参数
- target
- Byte
目标数据。
- type
- RuntimeTypeHandle
要创建的框的类型。
返回
包含指定数据的装箱对象。
例外
指定的类型句柄 null。
指定的类型不能创建本身的装箱实例。
传入的类型类似于 byref 的类型。