摘要: 单例模式介绍保证一个类仅有一个实例,并提供一个访问它的全局访问点。单例模式的精简写法public class Singleton<T> where T : new() { public static T Instance { get { return SingletonCreate.instance; } } class SingletonCreate { internal stati... 阅读全文
posted @ 2010-07-19 21:53 神龙升空 阅读(371) 评论(0) 推荐(0)