What is boxing? How we can use it?

Answer Posted / monu

Boxing is an implicitly method which is use to convert the
value type datatypes.

Unboxing is an Explicitly.
Int32 x = 20; object o = x ; // Implicit
boxing
Int32 y = 20;
object obj = (object) y; // Explicit Boxing

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does output caching work in ASP.NET?

497


What is the exact purpose of http handlers?

565


Explain the difference between debug.write and trace.write?

531


How you can return View from ASP.NET Web API method?

541


Which two new properties are added in asp.net 4.0 page class?

521






Where do the cookie state and session state information be stored?

510


What is the web.config file in asp?

636


How can we apply themes to an asp.net application?

557


Explain the difference between inline and code behind - which is best in?

502


Define page fragment caching?

517


What is the difference between stored procedure vs function?

572


What are the media types of http requests and response?

508


Explain cookies with example.

553


What is web router?

501


Define web.config in .net?

637