在 C# 中实现 Singleton
摘要:
Singleton Singleton 设计模式的下列实现采用了 Design Patterns: Elements of Reusable Object-Oriented Software[Gamma95] 中所描述的解决方案,但对它进行了修改,以便利用 C# 中可用的语言功能,如属性: using System; public class Singleton { private static... 阅读全文
posted @ 2006-04-02 16:41
灵魂边缘
阅读(1904)
评论(0)
推荐(0)
浙公网安备 33010602011771号