Wiki Home

Value Type

Namespace: WIN_COM_API

A .Net type of variable that contains actual data.

Value Types cannot contain Null

In C# you create a variable in System.Int32 by declaring
int i = 32;

This allocates a 32-bit space on the stack. This can be manipulated directly and the act of assigning a value to i results in that 32-bit value being moved to the allocated space.

See: Reference Type
Category Definitions Category DotNet
( Topic last updated: 2002.05.26 01:46:42 PM )