What is Covariance and contravariance in C#?
Ritesh Singh
Covariance and contravariance enable implicit reference conversion for array types, delegate types, and generic type arguments. Covariance preserves assignment compatibility and contravariance reverses it.