What are Generics in C#?

Creating and using your own Generic Methods and Classes in C#

It’s hard to do much development in dotnet without running into generics. After all, since .NET Framework 2.0 in the early 2000’s we’ve had List<T> and Dictionary<TKey, TValue>. But what exactly are generics in C#?

In this article we’ll explore what generics are in C#, how they work, how we…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matt Eland

I help people love writing code through writing, speaking, and teaching on Software Engineering & Data Science