Covariance and contravariance real world example
- by Sir Psycho
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?