Boxing in dotnet

Boxing is an implicit conversion of a value type such as int, bool or byte, to the type object or to any interface type implemented by this value type.

Boxing a value type allocates an object on the stack that
contains a reference to the value type contained on the heap.

No comments: