Current .Net Version: 2.0.50727
Home
Articles
C# & .Net Framework Reference
Practice C# Online
XML Web Services
RSS Feeds
Code Snippets
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog




ROR XML Info.
C# & .Net Framework Reference
Boxing and Unboxing (C#)

Full Name:
cs.boxing

Short Name:
cs.boxing

Type of Entity:
C#

Abstract:
Boxing and unboxing enable value types to be treated as objects. Boxing a value type packages it inside an instance of the Object reference type. This allows the value type to be stored on the garbage collected heap. Unboxing extracts the value type from the object. In this example, the integer variable i is boxed and assigned to object o.

MSDN Source URL:
http://msdn2.microsoft.com/yz2be5wk.aspx

 
COPYRIGHT/DISCLAIMER | CONTACT US