TechBubbles Microsoft Technology BLOG

TagDesign pattern

Singleton Design Pattern in C#

Best known Creational Design Pattern is Singleton. We can implement this pattern in different ways. I am explaining some of the ways where we can implement in C#. We will have the following concepts in implementing the Singleton pattern We declare a private constructor which prevents other classes to create an instantiation of the singleton class. It also prevents the sub classing. We declare a...

TechBubbles Microsoft Technology BLOG

Follow me

Archives

Tag Cloud