-
Course
- Core Tech
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.
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.
Table of contents
- 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
About the author
Thomas is a well-known author, software developer, and speaker from Germany. He specializes in .NET, C#, TypeScript, XAML, and Azure.
More Courses by Thomas