Software Architecture – Confusion everywhere – Covariant, contravariant and invariant

Covariant, contravariant and invariant are new concepts of C# 4. These are the most confusing concepts that I have ever read for C#. I have gone through Wiki and MSDN, but clarity was not there. Every source was giving show of words with a lot of confusion.

While googling I saw a post by Eric Lippert at

http://blogs.msdn.com/b/ericlippert/archive/2009/11/30/what-s-the-difference-between-covariance-and-assignment-compatibility.aspx

This is the best explanation on net for Covariant, contravariant and invariant.

Thank Eric Lippert.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: