Static class vs Singleton class in C# [duplicate]
https://softwareengineering.stackexchange.com/questions/141147
-
04-11-2019 - |
题
Possible Duplicate:
What is the difference between all-static-methods and applying a singleton pattern?
I need to make a decision for a project I'm working of whether to use static or singleton.
After reading an article like this I am inclined to use singleton.
What is better to use static class or singleton?
Edit 1 : Client Server Desktop Application.
Please provide code oriented solutions.
没有正确的解决方案