C#: Differences between Singleton and Static Pattern
Possible Duplicate:
Difference between static class and singleton pattern?
I'm thinking about the choice between Static classes and Singleton pattern on C#.
Do you know how static classes are created? In particular, I would know if a static class is unique during program execution and what are pro or cons against Singleton pattern.
Thank you in advance.
A static class can not be instanciated. A singleton can be instanciated once.
Discussion about the use of the Singleton pattern
And more here
链接地址: http://www.djcxy.com/p/78826.html上一篇: Singleton v / s类,带有Java中的静态成员和方法
下一篇: C#:单例和静态模式之间的差异