- Course
C# 9 Generics
Generics allow you to write type-safe, reusable, and performant C# code. This course will teach you how to build generic classes, generic interfaces, and generic methods, and how to use them in your .NET applications.
- Course
C# 9 Generics
Generics allow you to write type-safe, reusable, and performant C# code. This course will teach you how to build generic classes, generic interfaces, and generic methods, and how to use them in your .NET applications.
Get started today
Access this course and other top-rated tech content with one of our business plans.
Try this course for free
Access this course and other top-rated tech content with one of our individual plans.
This course is included in the libraries shown below:
- Core Tech
What you'll learn
Generics are a powerful feature of the C# language, they allow you to write type-safe, reusable, and performant code. In this course, C# 9 Generics, you’ll learn to build and use generic types in your .NET applications. First, you’ll explore the need for generics in C#. Next, you’ll discover how to build and use generic classes, interfaces, methods, and delegates. Finally, you’ll learn how generics behave in special cases, like with static members and mathematical operators. When you’re finished with this course, you’ll have the skills and knowledge of C# Generics needed to build and use your own generic types in your .NET applications.
C# 9 Generics
-
Version Check | 15s
-
Introduction | 1m 35s
-
How This Course Is Structured | 1m 50s
-
Implement a Stack Class for Doubles | 8m 57s
-
The New Requirement | 2m 18s
-
Use Object to Support Any Type | 8m 29s
-
Copy and Paste for Victory | 3m 32s
-
Create a Generic Stack Class | 4m 50s
-
Know the Advantages of Generics | 2m 28s
-
Use the Stack<T> Class of .NET | 2m 49s
-
Summary | 1m 29s