【发布时间】:2011-04-06 01:28:45
【问题描述】:
可能的重复:
Covariance and contravariance real world example
still confused about covariance and contravariance & in/out
您能否给我一个关于协方差和逆方差的描述或示例,以及为什么他们现在决定将其添加到 .NET 4 中?
【问题讨论】:
-
这可能会有所帮助:stackoverflow.com/questions/245607/…
-
还有stackoverflow.com/questions/2662369/… 和stackoverflow.com/questions/1163465/… 和stackoverflow.com/questions/3445631/… ...地狱..只需在搜索框中输入这两个词...这样更容易
-
好的,很酷,这应该给我一些阅读的东西。我正在尝试获得高级摘要,以及如何在我自己的应用程序中实现协/逆变。
-
您可能还想阅读我写的关于我们如何设计和实现方差的二十多篇文章。 blogs.msdn.com/b/ericlippert/archive/tags/…
标签: c# .net design-patterns