What is boxing and unboxing in .NET Framework?


Server Intellect Web Hosting Solutions


What is boxing and unboxing in .NET Framework?

Author: azamsharp

In this article I will explain the concepts of Boxing and UnBoxing. C# provides us with Value types and Reference Types. Value Types are stored on the stack and Reference types are stored on the heap. The conversion of value type to reference type is known as boxing and converting reference type back to the value type is known as unboxing.










More Tutorials

Also See:

ObjectDataSource in Depth (Part 2)
Install a blog or news site in 5 minutes for ASP.NET v2.0
Automate Error Logging using Custom Page Class
EDRA 1.1 Community Release now available
What's new in System.Xml 2.0
ASP.NET 2.0 Visio Custom Control
Improve performance using ADO.NET 2.0 batch update feature
Securing Your ASP.NET App Against Cross-site Scripting (XSS) Attacks
ASP.NET Tip: Using Nested Master Pages
HOWTO: Configure a datagrid template postback from a textbox



Copyright© 2005 ASP Intellect | All Rights Reserved

ASP.NET Tutorials
AspNet Tutorials ASP.NET 2.0 Code Examples, Snippets and Tutorials

ASP.NET Tutorials C++ Tutorials C# Tutorials Visual Studio.NET Tutorials
.NET Framework Tutorials Mobility Tutorials Office Tutorials Visual Basic.NET Tutorials