Chapter 3. Fundamental Types

All information stored or used by a Visual Basic .NET program has a type. A type describes a piece of information to the .NET Framework, saying how it is used and stored. By assigning every piece of information a type, the language can enforce type-safe programming, which ensures that information is always interpreted in a correct manner, helping to reduce programming errors.

There are 11 fundamental types in Visual Basic .NET. All the fundamental types support literals, which are a textual representation of a particular value of a fundamental type. For example, the string 10.5 is a Double literal that represents the decimal value 10.5. The fundamental types are listed in Table 3-1.

Among the 11 fundamental types are ...

Get Visual Basic .NET Programming Language, The now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.