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

How to Create and Consume a Web Service?

2652


State the differences between the dispose() and finalize().

592


What tools is used to develop .NET applications?

617


Explain about .Net products?

608


Explain the difference between the while and for loop.

579






Is there any thread in our .net programs?

593


what are connection strings?

1743


How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

533


What tools can I use to develop .net applications?

568


Can a dll be changed to an exe?

576


Explain about .net?

620


What are the types of assemblies in .net?

563


How will you register com+ services?

1609


Explain the difference between asp.net and asp?

561


How can I tell if .net 3.5 is installed?

515