© Ali Asad and Hamza Ali 2017

Ali Asad and Hamza Ali, The C# Programmer’s Study Guide (MCSD), 10.1007/978-1-4842-2860-9_2

2. Types in C#

Ali Asad and Hamza Ali1

(1)Sialkot, Pakistan

C# is a strongly-typed language. It says, data must have a type that defines its nature and behavior. Type helps to manipulate data in a much managed way. We’ll cover the following main objectives that help to create and consume types in C#.

  1. Understand Types

  2. Create Types

  3. Types and Memory Management

  4. Special Types in C#

  5. Type Conversion

Understand Types

Types are the declaration of an object which stores information and actions, that an object uses to produce required results. Type also stores the following information:

  • How much memory an object holds

  • Memory location where ...

Get The C# Programmer’s Study Guide (MCSD): Exam: 70-483 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.