Tutorial by Examples

Value types simply contain a value. All value types are derived from the System.ValueType class, and this includes most of the built in types. When creating a new value type, the an area of memory called the stack is used. The stack will grow accordingly, by the size the declared type. So for exa...
Reference types are comprised of both a reference to a memory area, and a value stored within that area. This is analogous to pointers in C/C++. All reference types are stored on what is known as the heap. The heap is simply a managed area of memory where objects are stored. When a new object is ...

Page 1 of 1