Cook Computing

Covariance in .NET

July 26, 2002 Written by Charles Cook

Going back to the topic of covariance discussed here a while ago, I came across the following on the DOTNET-CLR list in a thread called more wishes (Brian Harry is a .NET program manager type at MS):

- return type covariance & argument type contravariance support in the CLR (when a MethodImpl is used to override a method with a different return type or argument types)

[Brian Harry] We have talked about this a lot and I think we are going to be doing it in a not too distant future version but I'll have to check.

Its not as if my life would be incomplete without covariance in .NET but it would be nice to have it all the same.