Polymorphic Generics in C#
Generics are great for adding some level of type safety to C#, but you may run into problems when using Generic classes with objects that aren’t of the exact Class or Interface indicated by the generic type template. Enter Generic Constraints.
Generic Constraints let you restrict the number of types a type variable can apply […]