摘要:
IComparable doesn't need to be contravariant? In the code below i am targetting the .NET 2.0 Framework. I can pass a Programmer (derived) object to th 阅读全文
posted @ 2020-09-30 17:51
ChuckLu
阅读(163)
评论(0)
推荐(0)
摘要:
Covariance and Contravariance in Generics 奇怪的是微软有两篇文章来说明协变和逆变 文章1 Docs .NET C# guide Programming guide Programming concepts Covariance and contravaria 阅读全文
posted @ 2020-09-30 16:51
ChuckLu
阅读(179)
评论(0)
推荐(0)
摘要:
https://rules.sonarsource.com/csharp/RSPEC-2386 https://github.com/SonarSource/sonar-dotnet/issues/3636 public class CustomHelper { public static List 阅读全文
posted @ 2020-09-30 15:16
ChuckLu
阅读(3027)
评论(0)
推荐(0)

浙公网安备 33010602011771号