What is boxing and unboxing?

Boxing: Boxing is the process of converting a Value type to the Reference type. When the CLR boxes a value type, it wraps the value inside a System.Object and stores it on the managed heap. Boxing is implicit. For example, the integer variable i is boxed and assigned to object j. int i = 1; obj j = i;   […]

Read More