C# - Singleton Pattern vs. Static Classes(dotnet.dzone.com)
submitted by
volume4(910) 3 years, 10 months ago
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.
|category: C#
|Views: 85
tags:
Singleton Patterns C# another
Everyones tags:
Your Tags: