What is boxing and unboxing ?

Answer Posted / kirti

Boxing:

The conversion of a value type instance to an object, which implies that the instance will carry full type information at run time and will be allocated in the heap. The Microsoft intermediate language (MSIL) instruction set's box instruction converts a value type to an object by making a copy of the value type and embedding it in a newly allocated object.

Un-Boxing:

The conversion of an object instance to a 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

What is the difference between the RegisterWellknownServiceType(), RegisterWellknownClientType(), RegisterActivatedServiceType() and RegisterActivatedClientType() in .net?

512


When should we choose .net remoting over .net web services?

542


Is it a good design practice to distribute the implementation to remoting client?

504


Can you pass SOAP messages through remoting?

572


Explain how can you automatically generate interface for the remotable object in .net with microsoft tools?

555






How can we call methods in remoting asynchronously?

519


What does manifest consists?

548


What are dynamic assemblies?

573


Can we configure a .net remoting object via xml file?

527


Difference between web services & remoting?

605


How can you configure a .net remoting object via xml file?

552


What are the advantage of remoting over web services?

498


Define a process?

551


What are the difference between static assemblies and dynamic assemblies?

572


What is Remoting?

638