What is boxing and unboxing in computer programming?
- Taking simple types (like int) and encapsulating them as an object. unboxing is getting to the simple value within the object.
- http://msdn.microsoft.com/en-us/library/yz2be5wk.aspx - Using boxed objects runs about 1/7th the speed of working with native values (example of adding ints vs. boxed ints to an array)
- Further info: This demonstrates the Microsoft hints about avoiding unneeded boxing/unboxing in repetitive assignments, as stated in the Microsoft 70-536 certification book "Microsoft .NET Framework Application Development Foundation" second edition, Tony Northrup, Chapter 1 Framework fundamentals, Lesson 4 Converting between types, paragraph "What are boxing and unboxing?"
Labels:
None
Add Comment