C# 4.0 – Covariance and Contravariance of Generics
Covariance allows casting of generic types to the base types, for example, IEnumerable<X> will be implicitly convertible an IEnumerable<Y> if X can implicitly be converted to Y.
// List of strings
IList<string> stringList = new List<string>();
[...]
Read more



18. Feb, 2010