Skip to Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Introducing Value Types and Reference Types

Value types are data types that store data directly. Examples of value types are integers (System.Int32), Booleans (System.Boolean), and bytes (System.Byte). Value types are stored in a memory area called the stack. They are represented by (and defined via) structures that are enclosed in Structure..End Structure code blocks. The following is an example of a value type that contains a value:

Dim anInteger As System.Int32 = 5

Reference types are data types that, as their name implies, just reference the actual data. In other words, reference types store the address of their data in the stack, whereas the actual data is stored in the managed heap. Reference types are represented ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book