Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's a Singleton?
Message
From
15/08/2009 12:41:57
 
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01417218
Message ID:
01418245
Views:
79
>Why not just create a static class?

Short answer: it depends on what purpose the class serves.

In Tim's case, his class needs to be an instance rather than static, because his instance fires events, etc. That wouldn't work with a static class.

But, as Tim also says, the Singleton pattern seems to be overused. <g> So, did you have some particular use in mind or is this just a generic question?

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform