Introduction to the C# 9 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.
What you'll learn
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#.
Table of contents
- Module Introduction 1m
- Understanding Types in C# 6m
- Using Built-in Data Types 2m
- Demo: Working with Primitive Types 5m
- Expressions in C# 2m
- Demo: Operators and Default Values 4m
- Members on Primitive Types 2m
- Demo: Working with Members of int and char 3m
- Working with DateTime 2m
- Demo: Working with DateTime 6m
- Converting between Types 3m
- Demo: Converting between Types 3m
- Implicit Typing 2m
- Demo: Implicit Typing 2m
- Summary 1m
- Module Introduction 1m
- Understanding Strings in C# 3m
- Demo: Creating Strings 2m
- Working with Strings 5m
- Demo: Working with Strings 6m
- Escaping Text 2m
- Demo: Escaping Text 3m
- Testing Strings for Equality 1m
- Demo: Comparing Strings 2m
- The Immutability of Strings 5m
- Demo: Strings are Immutable 5m
- Parsing from Strings to Other Types 2m
- Demo: Parsing Strings 3m
- Summary 1m
- Module Introduction 1m
- Understanding Methods 6m
- Demo: Creating Methods 6m
- Finding the Correct Method 2m
- Demo: Method Overloading 3m
- Passing Parameters by Value and by Reference 3m
- Demo: Passing Parameters by Value and by Reference 4m
- Demo: Using the out Keyword 3m
- Using params 2m
- Demo: Using params 2m
- Optional Parameters and Named Arguments 2m
- Demo: Optional Parameters and Named Arguments 3m
- Demo: Using Expression-bodied syntax 2m
- Summary 1m
- Module Introduction 1m
- Understanding Classes 4m
- Creating the Employee Class 4m
- Demo: Creating the Employee Class 6m
- Using the Class 9m
- Demo: Creating Objects 7m
- Demo: Working with Several Objects 2m
- Demo: Classes Are Reference Types 3m
- Adding Properties 3m
- Demo: Adding Properties 6m
- Demo: Building the Employee Registration Application 6m
- Summary 1m
- Module Introduction 1m
- Grouping Classes in Namespaces 2m
- Demo: Working with Custom Namespaces 4m
- Introducing Static Data 4m
- Demo: Working with Static Data and Methods 5m
- Demo: Working with Constant Data 2m
- Working with null 4m
- Demo: Working with null 4m
- Understanding Garbage Collection 3m
- Demo: Understanding Garbage Collection 3m
- Summary 1m
- Module Introduction 1m
- Understanding Inheritance 3m
- Creating a Base and a Derived Type 4m
- Demo: Creating a Base and a Derived Type 10m
- The Is-A Relation 1m
- Demo: The Is-A Relation 2m
- Using Polymorphism 6m
- Demo: Using the virtual and override Keywords 7m
- Demo: Working with Sealed Classes 2m
- Abstract Classes 3m
- Demo: Working with Abstract Classes 6m
- Inheriting from System.Object 2m
- Demo: Inheriting from System.Object 2m
- Summary 1m