单件模式(Singleton Pattern)
摘要:
第一种:非线程安全 // Bad code! Do not use! public sealed class Singleton { static Singleton instance=null; Singleton() { } public static Singleton Instance { get { ... 阅读全文
posted @ 2007-09-25 20:57 mjgforever 阅读(266) 评论(0) 推荐(0) 编辑