- Course
This course will teach you how to apply C# generics in your applications, including best practices and potential pitfalls.
Intermediate
2h 41m
(84)
Created by Steve Smith
Last Updated May 12, 2022
- Course
Working with C# 9 Generics: Best Practices
This course will teach you how to apply C# generics in your applications, including best practices and potential pitfalls.
Intermediate
2h 41m
(84)
Created by Steve Smith
Last Updated May 12, 2022
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
In this course, Working With C# Generics: Best Practices, you’ll learn to use generics in your own types and classes. First, you’ll explore generic interfaces and constraints. Next, you’ll discover the covariance and contravariance. Finally, you’ll learn how to use generics with events and methods. When you’re finished with this course, you’ll have the skills and knowledge of C# generics needed to level up your .NET apps with cleaner, more reusable code.
Table of contents
-
Course Overview | 1m 53s
To view this content, start a free trial or activate one of our plans.
-
Version Check | 15s
To view this content, start a free trial or activate one of our plans.
-
Introduction | 1m 42s
To view this content, start a free trial or activate one of our plans.
-
Introducing Generics | 4m 54s
To view this content, start a free trial or activate one of our plans.
-
Specific vs. Generic Interfaces | 8m 32s
To view this content, start a free trial or activate one of our plans.
-
How Generic Interfaces Work | 3m 20s
To view this content, start a free trial or activate one of our plans.
-
Working With IEnumerable<T> | 12m 27s
To view this content, start a free trial or activate one of our plans.
-
Introducing Generic Constraints | 4m 23s
To view this content, start a free trial or activate one of our plans.
-
Applying Generic Constraints | 10m 35s
To view this content, start a free trial or activate one of our plans.
-
Key Takeaways | 1m 38s
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
-
To view this content, start a free trial or activate one of our plans.
Steve Smith
![]()
24 courses
4.5 author rating
13475 ratings
Steve Smith (@ardalis) is an entrepreneur and software developer with a passion for building quality software as effectively as possible.