Technology and Development

On Csharp - Covariance and Contravariance

Author: Son Nguyen Hoang

Word: 1645

Language: English

Created On: 12 Jun 2024

Useful concepts for generic interface, delegates and more!

Recently I decided to teach myself some C# knowledge that I found my self lacking, including but not limited to Task (Concurrency), delegates and some Design Patterns. While reading books, I encountered two concepts that sound pretty weird. They are Covariance and Contravariance. What are these? Problem I didn’t find any good translation to Vietnamese of these two concepts. The first result from Google indicates that Covariance is related to statistic?...

Back To Top