I was reading Microsoft's Class Room Training Materil. I read the following
Unboxing Unboxing is the opposite of boxing. It is the explicit conversion of a reference type to a value type. Unboxing retrieves a reference to the value type contained within an object. An unboxing operation involves checking the object instance to ensure that the object instance is a boxed value of the given value type. Then, the value from the instance is copied into the value type variable.
**
Unboxing returns a pointer to the data within a boxed object and does not create a copy of the data.
**
I dont really understand the line that i highlighted. it says that when unboxing boxed object, it does not create a copy, it just returns a pointer. If that is true, then a value type variable will be allocated in Heap right?
Ram