Singleton Design Pattern In C# - Part Three (Static vs Singleton)
Singleton Design Pattern In C# – Part Three (Static vs Singleton)
Introduction
In this series on learning singleton pattern, we learned lazy initialization and eager initialization with practical examples. We also learned why it is necessary to make the singleton class sealed with the sealed keyword. In this article, I’ll try to explain the differences between static and singleton class. We will also see where to use static class and where to use singleton…
View On WordPress






