Partilhar via


Unbox Class

Definition

Unboxes an object that contains a value type into a specific, possibly-different value type. Value truncation may occur when using methods of this type, as the original source value is cast to the target value without ensuring that the target value can contain the original source value.

public ref class Unbox abstract sealed
public ref class Unbox abstract sealed
class Unbox abstract sealed
public static class Unbox
type Unbox = class
Public Class Unbox
Inheritance
Unbox

Remarks

Warning

Value truncation may occur when used this method, because the original source value is cast to the target value without ensuring that the target value can contain the original source value.

Methods

AsBoolean(Object)

Unboxes the specified object into a Boolean object.

AsDouble(Object)

Unboxes the specified object into a Double object.

AsInt16(Object)

Unboxes the specified object into an Int16 object.

AsInt32(Object)

Unboxes the specified object into an Int32 object.

AsInt64(Object)

Unboxes the specified object into an Int64 object.

AsInt8(Object)

Unboxes the specified object into an Int8 object.

AsIntPtr(Object)

Unboxes the specified object into an IntPtr object.

AsUInt16(Object)

Unboxes the specified object into a UInt16 object.

AsUInt32(Object)

Unboxes the specified object into a Uint32 object.

AsUInt64(Object)

Unboxes the specified object into a Uint64 object.

AsUInt8(Object)

Unboxes the specified object into a UInt8 object.

Applies to