adspace
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