API

Boxing conversion

Converts a value to an object/interface representation with value-copy semantics.

Formal Syntax & Structure

csharp syntaxcsharp
object boxed = count;

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.object boxed = count;
C# & .NET Reference