Wiki Home

Reference Type


Namespace: WIN_COM_API

A .Net type of variable that reference data. Similar to C++ in that they are type-safe pointers. This means that besides being an address in memory it points to an object of the type specified that has already been allocated.

Reference Types can be Null

C# Example:
string s = "Hello World";


This allocates memory on the heap. IOW a number of bytes that contains information associated with the declared type. Every time you work with it your are referencing a memory location (address) as opposed to referencing the value as with Value Types.

See: Value Type
Category Definitions Category DotNet
( Topic last updated: 2002.05.26 01:51:20 PM )