摘要: 目的:避免对象的重复创建 单线程具体的实现代码 /// <summary> /// 私有化构造函数 /// </summary> public class Singleton { private Singleton() {//构造函数可能耗时间,耗资源 } public static Singlet 阅读全文
posted @ 2017-10-09 16:51 人间的四月天 阅读(112) 评论(0) 推荐(1) 编辑