adspace


How boxing and unboxing occures in memory?

Answer Posted / Lalan Kumar

Boxing refers to the process of converting a value type (e.g., int) into an object (System.Object). When this happens, the value type is wrapped inside an object instance on the heap. Unboxing, on the other hand, involves converting an object back to its original value type. This operation extracts the underlying value from the object instance and assigns it to a variable of the appropriate value type.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1141