What is boxing? How we can use it?

Answer Posted / rahultripathi

There is two type datatype available Value and reference
type . value are stored in stack and reference type used
in heap . when we copy data from stack memmory to heap it
call Boxing .


Int32 x = 10; object o = x ; // Implicit
boxing
Int32 y = 10;
object obj = (object) y; // Explicit Boxing


Rahul Tripathi
raultripathi@myway.com

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the disadvantages of viewstate?

571


Why is an object pool required?

611


What is the purpose of master page?

518


What is a swagger in web api?

540


What are the main advantages of using asp.net?

558






Which is faster union or union all?

581


How does output caching work in ASP.NET?

502


Which dll handles the request of .aspx page?

561


Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

586


What is difference between viewstate and session state in javascript?

580


What is Pre-Render event in ASP.NET?

592


How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.

1426


How use Xml data in ASP.net?

563


What are the options in ASP.NET to maintain state?

619


How to handle errors in Web API?

626