Covariance in delegates
I'm not sure if it's the way to call it, but why does the C# compiler errors on this:
{
return new List<string>();
}
Seems to me that a generic of a derived type should be able to satisfy the compiler when requesting a generic of a base type.
Any idea what the reasoning behind this decision was?
Comments
Comment preview