C# : Is Variance (Covariance / Contravariance) another word for Polymorphism?
问题 I am trying to figure out the exact meaning of the words Covariance and Contravariance from several articles online and questions on StackOverflow, and from what I can understand, it\'s only another word for polymorphism . Am I correct with the above statement? Or have I got it wrong ? 回答1: It's certainly related to polymorphism. I wouldn't say they're just "another word" for polymorphism though - they're about very specific situations, where you can treat one type as if it were another type