Explain Covariance and Contravariance in Delegates ?

Covariance permits a method to have a more derived return type than what is defined in the delegate.
Contravariance permits a method with parameter types that are less derived than in the delegate type.

No comments:

Popular Posts