What is Boxing and Unboxing in C#
1429
24-Aug-2017
Niraj Kumar Mishra
24-Aug-2017Boxing is the process of converting a value type to the object type.When the CLR boxes a value type, it wraps the value inside a System.Object and stores it on the managed heap.
Example :
Unboxing :
Unboxing is an explicit conversion from the type object to a value type