Generics is a very important topic in the C# programming language. As far as I know, it would be hard to find any modern software written in C# that doesn't use generics.
The topics we will cover in this chapter are as follows:
- What are Generics?
- Why do we need Generics?
- Different constraints of Generics
- Generic methods
- Covariance and Contravariance in Generics