Home »

How Boxing and unboxing occures in memory?

Question ListCategory: .NETHow Boxing and unboxing occures in memory?
jamessmith05 author asked 1 year ago
1 Answers
milleranthony7 author answered 10 months 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