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

What is difference between html.beginform and ajax.beginform?

785


What are the components required to create a route in mvc?

806


What is the difference between model view and controller?

669


What is the purpose of a web form?

740


explain how you can load related entities in ef (entity framework)?

748


What is page life cycle?

694


What you mean by routing in asp.net mvc?

737


What is html.renderpartial?

760


how can you enhance the performance of entity framework?

796


What does mvvm mean?

747


Is razor a server side?

708


How to change the action name in ASP.Net MVC?

783


What is .net core framework?

727


Explain test driven development (tdd) ?

744


What is definingquery in entity framework? : Entity framework

731