Chapter 6. TYPES PART I: THE SIMPLE TYPES

You will learn about the following in this chapter:

  • The importance of types in C# and why it is important to be familiar with them

  • The implications of C# being a strongly typed language

  • Two important ways of dividing the types in C#—simple types versus derived types and value types versus reference types

  • All the main types found in C#

  • Simple predefined types in C#

  • How C# determines the type of a literal

  • How to best apply each simple type, and how to avoid common pitfalls during this process

  • Compatibilities between the various simple types and understanding for implicit and explicit conversions between these types

  • A syntax notation form used in the rest of the book to effectively and concisely describe the syntax ...

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.