What is boxing and unboxing?

Answer Posted / maloy.adhikari

Converting a value type to reference type is called Boxing
and Converting reference type of value type is Unboxing.

int i = 1;
object o = i; // boxing
int j = (int)o; // unboxing

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

mention what are the various methods provided by the dataset object to generate xml?

565


How large is the .net framework 3.0?

539


Can I uninstall microsoft .net framework?

529


Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?

514


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

527






Give an example for authorization filters in an asp.net mvc application?

514


Explain the new features 3.5 framework against with the tool?

475


What is representational state transfer (rest) mean?

529


What is needed for running an application built on winfx on the .net framework 3.0?

493


What is clr? How does work clr & wht is work of clr?

537


What are HTML Helpers, AJAX Helpers in ASP.Net MVC?

548


Is .net core faster than .net framework?

526


What is viewstart page in mvc?

556


What is poco proxy? : Entity framework

531


how to disable the lazy loading framework?

569