Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Term
| Boxing
|
| Definition
| Converting a value type to a reference type object. A value type is stored on stack memory and requires conversion—boxing—to an object on the heap memory before it can be treated as an object. The members of the new object can be invoked on the value, e.g., converting a double to a string. Boxing may be performed implicitly at runtime by the CLR.
|
| See also
| Unboxing
|
| This C# Online.NET definition is from the Glossary of .NET / C# Terms.
|