Why use singleton instead of static class?
One good reason for preferring a singleton over a static class (assuming you have no better patterns at your disposal 😉 ), is swapping out one singleton instance with another. For example, if I have a logging class like this: public static class Logger { public static void Log(string s) { … } } public … Read more