0

Ok, I know that IEnumerable is covariant. But outside of that one, I'm not sure which other ones are covariant and contravariant. The only way I can think to figure it out is to go through each and every type and look at the definition. I think it would be better to have them listed and memorized. I've looked online but I've not found such a list.

Thanks!

jacob p
  • 31
  • 1
  • 4
  • 2
    You looking for something like [this](https://msdn.microsoft.com/en-us/library/dd799517%28v=vs.110%29.aspx#Anchor_4)? – Mark Mar 16 '16 at 03:29
  • Thanks for the link. There is also IReadOnlyCollection(Of T), IReadOnlyList(Of T), and IReadOnlyDictionary(Of TKey, TValue). These are not listed on the page above. – Jacob Pressures Mar 17 '16 at 17:52

0 Answers0