» tagged pages
» logout
technology
Return to dzone.com: tech links

C# - Singleton Pattern vs. Static Classes

Tags Applied to this Entry

1 person has tagged this page:
Problem: Store some common data in a singleton or static class about your program in an object array, which you store in a class. It saves state between usages and stores some caches, and must be initialized only once and shared in many code locations. Making a new object each time would be expensive.
Username:
Password:
(or Cancel)