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…