摘要: 1.单例模式View Code /// <summary> /// 单例模式 /// </summary> /// <typeparam name="T"></typeparam> public class Singleton<T> where T:new () { public static T Instance { get { return SingletonCreator.instance; } } public class SingletonCreator { internal readonly ... 阅读全文
posted @ 2013-03-25 18:08 幻想时空 阅读(907) 评论(0) 推荐(0) 编辑