Simple Types

Simple types are also called primitive types and belong to a group of built-in predefined types found in C#. Examples of such values are single numbers (the int type) and individual characters.

Our path to appreciating the variety of simple types provided begins with an understanding of the relationship between the information you want to store from the “real” world and the variables in your source code.

Variables constitute a central part of a C# program. They enable the programmer to symbolically represent values stored in the computer memory. In fact, the identifier of a variable (such as count or age) is a symbol representing an underlying value somewhere in memory. A name, such as taxPercentage, is far easier to understand in ...

Get C# Primer Plus now with O’Reilly online learning.

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