Covariance and contravariance real world example
Posted
by Sir Psycho
on Stack Overflow
See other posts from Stack Overflow
or by Sir Psycho
Published on 2010-04-18T13:26:44Z
Indexed on
2010/04/18
13:33 UTC
Read the original article
Hit count: 244
I'm having a little trouble understaing how I would use covariance and contravariance in the real world.
So far, the only example's I've seen have been the same old array example.
object[] objectArray = new string[] { "string 1", "string 2" };
It would be nice to see an example that would allow me to use it during my development if I could see it being used elsewhere.
Can anyone point me to some useful resources?
© Stack Overflow or respective owner