Home »

How Boxing and unboxing occures in memory?

Question ListCategory: .NETHow Boxing and unboxing occures in memory?
jamessmith05 author asked 8 years ago
1 Answers
milleranthony7 author answered 8 years ago

Boxing converts value type to reference type , thus allocating memory on Heap . Unboxing converts already boxed reference types to value types through explicit casting , thus allocating memory on stack .

Please login or Register to Submit Answer