摘要:
逆变和协变 所谓逆变和协变,是.net 为了把面向对象的多态特性中的里氏转换 搬到泛型中依旧可以使用. 协变: 现有以下类: public class Person { public long Id { get; set; } public string Name { get; set; } } p 阅读全文
摘要:
最近工作中在上线项目的时候安装Exceptionless时,运行powershell脚本,发现报错: 报错提示:You cannot run this script on the current system. 首次在计算机上启动 Windows PowerShell 时,现用执行策略很可能是 Re 阅读全文
摘要:
简言: 相信各位在写程序时都会碰到,对象拷贝的问题。例如: class PersonEntity { public long Id { get; set; } public string Name { get; set; } public string XXX { get; set; } publi 阅读全文