Cows, covariance and C# generics

At PDC 2003 Anders Hejlsberg presentation on C# new features, somebody made a question like this "Can C# generics be used to implement covariance?" I didn't understand the question so I didn't pay too much attention to the answer. So what is covariance? Yesterday I remembered the incident (go figure why) and today I googled over and found this very nice although somewath old cow-based explanation. Ah, that is covariance, interesting concept. Now I remember the begining of Anders answer "Well, yes to a certain extent..." To what extent I'm not sure but I least now I understand the question...

No Comments