C#4 Covariance/Contravariance

bearophile bearophileHUGS at lycos.com
Tue Jun 9 17:32:08 PDT 2009


Robert Fraser:
> In D if you want to treat a Template!(SomeClass) as a Template!(Object), 
> it's as easy as "cast(Template!(Object)) cast(void*) x"

How is this related to Covariance/Contravariance and in/out keywords, as shown in C#4?

Bye,
bearophile



More information about the Digitalmars-d mailing list