O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required