Introduction to the C# Type System

C# is a strongly-typed language. In this course, you’ll learn how to work with built-in data types, classes, interfaces, and inheritance.
Course info
Rating
(54)
Level
Beginner
Updated
May 3, 2021
Duration
5h 17m
Table of contents
Course Overview
Course Introduction
Using Built-in C# Data Types
Creating and Using Strings
Working with Methods
Understanding Value Types and Reference Types
Creating Your First Class and Objects
Doing More with Custom Types
Applying Inheritance to C# Types
Using Interfaces
Description
Course info
Rating
(54)
Level
Beginner
Updated
May 3, 2021
Duration
5h 17m
Description

Since C# is a strongly-typed language, everything you work with has to have a type defined. It's vital to know how to create your own custom types like classes, interfaces, enums, and structs. In this course, Introduction to the C# Type System, you’ll learn about the type system in C#. First, you’ll explore the built-in data types, including int, string, and DateTime. Next, you’ll understand the difference between value types and reference types and you’ll see how to create your own types, be that classes, enums, interfaces, or structs. Finally, you’ll learn about the different aspects offered by C# to create classes including inheritance. When you have finished this course, you’ll understand the different value types and reference types in C# needed to create any .NET application using C#.

About the author
About the author

Gill Cleeren is a solution architect, author, and trainer in mobile and web technologies. He's also a Microsoft Regional Director and MVP. He lives in Tienen, Belgium.

More from the author
GitHub: Getting Started
Beginner
4h 3m
Jul 6, 2021
More courses by Gill Cleeren
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Gill Cleeren, and welcome to my course, Introduction to the C# Type System. I'm the CTO of Xpirit Belgium, and I help customers with mobile and web application development. C# is a very popular language to create modern applications with, including web apps, APIs, mobile apps, and desktop applications. Everything in C# is a type, and thus understanding the type system with its many facets is important on your way to become a C# developer. This course is aimed at giving you the knowledge you need about the type system. In this course, you'll learn about the built‑in types and the way their values are treated and you'll understand that strings are a bit of a special case. You'll then learn how to create custom types, probably one of the most fundamental concepts you'll need to get your head around when learning C#. Most importantly, you'll understand how to create classes and use objects, then you'll understand the basics about inheritance and polymorphism. Finally, you'll also learn how to work with interfaces. Some of the major topics we will cover include learn about built‑in types that come with C#, get a deeper understanding about the difference between value types and reference types, create your own types, including classes and interfaces, understand what classes are, what objects are, and how these two relate, see how inheritance can be added when using classes in C#, implement a first interface on the classes you have created. By the end of the course, you'll have a deep understanding of the type system in C# and classes and objects won't have any secrets anymore for you. You'll be able to explain concepts such as inheritance, polymorphism, and interfaces. This course is part of the C# path, and it's expected you have already looked at the basics of the language itself. I hope you will join me on this journey to learn about the C# type system in the Introduction to the C# Type System course, here at Pluralsight.