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 do we sort the data from a dataset?

575


What is difference in .net 1.1 and .net 2.0?

590


What are the various ways to send content from one page to another?

524


What is cache in asp net?

536


when a request is made in Life cycle of ASP.NET page .

533






How does ASP.NET framework maps client side events to Server side events.?

553


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

514


Is post back in asp.net?

520


What is the use of view state?

536


What are the properties of the eventargs argument when capturing keyboard events?

547


What is the part of url?

534


What are different methods of session maintenance in asp.net?

567


Explain an object, class and method.

562


What is the file extension of web service?

556


What is the difference between client-side and server-side validations in ASP.NET?

665