Covariance and Contravariance in C#3
Posted on Tue 04 April 2017 in blog
A short introduction to Covariance and Contravariance in C# 3 preparing you to an article about that in C# 4. So what is covariance? Covariance is basically using a method which returns something derived from the expected type. An exemple? It's safe to have a method returning a cat when …
Continue reading