C#: boxing/unboxing
Value types can be used anywhere an object type can be used.
The compiler inserts automatic boxing and unboxing operations.
Boxing: creates an object
Unboxing: copies the value out of the object.
Previous slide
Next slide
Back to first slide
View graphic version