ECMA-334: 11.3 Boxing and unboxing
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| C# Language Specification |
|
| © 2006 ECMA International |
11.3 Boxing and unboxing
The concept of boxing and unboxing is central to C#’s type system. It provides a bridge between value-types
and reference-types 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.