Thursday, March 8, 2012

Covariant, Contravariant

Covariant - may assign derived to a base; i.e. polymorphism
Contravariant - may assign base to derived; used with delegate generic type parameters, i.e. the parameters of the function when executed may be derived

http://msdn.microsoft.com/en-us/library/dd799517.aspx

No comments:

Post a Comment