2019年9月16日

摘要: 一、协变和逆变是什么? 先从字面上理解 协变(Covariance)、逆变(Contravariance)。 co- 是英文中表示“协同”、“合作”的前缀。协变 的字面意思就是 “与变化的方向相同”。contra- 是英文中表示“相反”的前缀,逆变 的字面意思就是是 “与变化方向相反”。 那么问题来 阅读全文
posted @ 2019-09-16 17:05 强博员 阅读(192) 评论(0) 推荐(0)

2018年3月11日

摘要: 1、派生类构造顺序 先执行父类构造函数,再执行子类构造函数 阅读全文
posted @ 2018-03-11 16:10 强博员 阅读(69) 评论(0) 推荐(0)
摘要: class Base { public virtual void F1() { Console.WriteLine("Base's virtual function F1"); } public virtual void F2() { Console.WriteLine("Base's vir... 阅读全文
posted @ 2018-03-11 16:00 强博员 阅读(90) 评论(0) 推荐(0)

2018年1月21日

摘要: class MyWeakClass { public string world = "hello"; } class Program { static void Main(string[] args) { MyWeakClass weakClass = new MyWeakClass();... 阅读全文
posted @ 2018-01-21 22:35 强博员 阅读(70) 评论(0) 推荐(0)

2018年1月20日

摘要: [System.Flags] public enum ReportEnum { FirstReport=0, MiddleReport=1<<0, ThirdReport=1<<1, YearReport=1<<2, LatestReport=1<<3 } class Progra... 阅读全文
posted @ 2018-01-20 17:04 强博员 阅读(99) 评论(0) 推荐(0)

2017年9月30日

摘要: http://www.cnblogs.com/zhili/archive/2013/05/10/APM.html 阅读全文
posted @ 2017-09-30 17:25 强博员 阅读(67) 评论(0) 推荐(0)

2017年8月23日

摘要: //事件通知类 using System; using System.Collections.Generic; using System.Linq;using System.Text; using System.Threading.Tasks; namespace EventDemo { public class NotifyEventArgs : EventArgs ... 阅读全文
posted @ 2017-08-23 23:33 强博员 阅读(138) 评论(0) 推荐(0)

2017年8月21日

摘要: using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.... 阅读全文
posted @ 2017-08-21 23:30 强博员 阅读(129) 评论(0) 推荐(0)

2017年7月9日

摘要: package TestPac; import java.text.SimpleDateFormat; import java.util.Date; import java.util.LinkedList; import java.util.concurrent.TimeUnit; public class NotifyWaitThread { LinkedList linkedList... 阅读全文
posted @ 2017-07-09 09:34 强博员 阅读(79) 评论(0) 推荐(0)

导航