ECMA-334 C# Language Specification11.3: Boxing and unboxing |
The concept of boxing and unboxing is central to C#'s type system. It provides a bridge between value-type
s and reference-type
s by permitting any value of a value-type
to be converted to and from type object. Boxing and unboxing enables a unified view of the type system wherein a value of any type can ultimately be treated as an object.
In This Section: