What is boxing? What is the benefits and disadvantages of it?

Showing Answers 1 - 1 of 1 Answers


  • Jun 5th, 2007

Boxing is converting a value-type to reference type. An example is converting an integer value to an object value.

   int intValue = 10;
   object obj = (object)intValue;

This is used if you want to pass variables of object types to certain functions or methods you have created. Commonly used in events for example (Object sender...).

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account

Send   Reset


Related Answered Questions


Related Open Questions