The theory behind covariance and contravariance in C# 4

added by tomasp
6/19/2012 10:26:15 AM

10 Kicks, 473 Views

Covariance and contravariance are two useful features of generics in C# 4.0. Most of the time you don't see them. They just let you write code that you'd expect to work. Actually understanding how they work is more difficult. In this article, I explain that, together with some theory where the two concepts come from.


0 comments