Summary

This chapter provided an overview of the type system in C# and looked at the simple types in particular.

The important points we have discussed are as follows:

In object-oriented programming, types are used as building blocks to form other types.

Two ways can be used to divide the predefined types in C#: Simple types vs. derived types and value types vs. reference types. The former is often more convenient, the latter is the most correct.

All values belonging to a specific type share a set of predefined characteristics.

Every value must be of a specific type. There are strict rules in C# for the operations a value of a specific type can take part in. For that reason C# is termed a strongly typed language.

A strongly typed language allows ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.