What is boxing?

Answer Posted / swap

Boxing is the process of explicitly converting a value type
into a corresponding reference type. Basically, this
involves creating a new object on the heap and placing the
value there. Here is a basic example in C#:

int example = 35;
object i Example = example;

The new reference type includes the value 35.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

521


What is an anonymous method?

541


What is the root class in .net?

662


Compare client server application with n-tier application

524


What does jit compilation do in .net?

588






Explain me how does linq work?

595


What is common language specification (cls)?

654


With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?

520


What is the difference between response.redirect & server.transfer?

559


What is deferred execution vs. Immediate execution in linq?

577


What is lazy initialization?

597


What are the different.net tools which you used in projects?

552


Difference between value type & reference types ?

602


what is the meaning silverligt control

1687


Explain the difference between static page and dynamic page?

559