“Covariance allows you to encapsulate a method with a return type that is directly or indirectly derived from the delegate’s return type.” You could assign a delegate with a method that returns a type (sub type) that is derived (directly or indirectly) from the delegate’s defined return type; this is known as Covariance. I.e., if [...]
Tag Archives: Generics
Understanding Covariance and Contravariance in Generics Delegate in .Net Asp.Net C#
Posted by james on April 29, 2011
0 comments