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

Explain is the jit an interpreter?

664


What is the purpose of IClonable interface in .NET?

708


How is .net core cross platform?

733


How inheritance works in .net?

651


Please explain is the jit an interpreter?

688






How to produce an assembly?

653


What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?

697


If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.

619


Tell about your technical profile ?

3196


How big is the datatype int in .net?

649


Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column

2017


Can a dll be changed to an exe?

700


Can I write my own .net host?

706


SAP Business One(this is intigrated tool of .net)

1867


Explain what is immutability, what is it for and how is it codified?

609