C# 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 info
Rating
(95)
Level
Beginner
Updated
Apr 13, 2021
Duration
3h 15m
Table of contents
Course Overview
Understanding the Need for Generics
Implementing Generic Classes
Working with Generic Interfaces
Creating Generic Methods and Delegates
Knowing the Special Cases with Generics
Description
Course info
Rating
(95)
Level
Beginner
Updated
Apr 13, 2021
Duration
3h 15m
Your 10-day individual free trial includes:

Expert-led courses

Keep up with the pace of change with thousands of expert-led, in-depth courses.
Description

Generics are a powerful feature of the C# language, they allow you to write type-safe, reusable, and performant code. In this course, C# 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.

Course FAQ
Course FAQ
What will you learn in this C# tutorial?

In this course, you will learn what the need for generics is and how to implement generic classes, how to create generic interfaces, write generic methods, and use generic delegates.

Are there any prerequisites for this C# tutorial?

The only prerequisite for this course is a basic understanding of the C# programming language.

What are generics in C#?

Generics are the general form, not specific. Generics allow you to define the specification of the data type of programming elements in a class or method until it is actually used in the program.

What is .NET?

.NET is a software framework for building different types of applications. In this course, .NET is the tool that lets you build and run C# programs.

Who is this C# tutorial for?

This C# tutorial is for anyone who wants to learn how to build and use generic types in a .NET application.

About the author
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 from the author
Uno Platform Fundamentals
Intermediate
2h 30m
Jul 29, 2021
More courses by Thomas Claudius Huber
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Thomas Claudius Huber, and welcome to my course, C# Generics. I am a professional software developer and I build applications with C# and .NET. C# generics are a powerful feature and they allow you to write type‑safe, reusable, and performant code. Some of the major topics that we will cover in this course include understanding the need for generics in C#, implementing generic glasses, creating generic interfaces, writing generic methods, and using generic delegates. By the end of this course, you will know how to use C# generics in your .NET applications to write type‑safe, reusable, and performant code. Before beginning the course, you should be familiar with the basics of the C# programming language, like classes, interfaces, and delegates. I hope you will join me on this journey to learn how to write type‑safe, reusable, and performant C# code with the C# Generics course, at Pluralsight.