Design Patterns – Using the Singleton Pattern in C#(dotnetcube.com)
submitted by
dncdude(1350) 2 years, 10 months ago
Singleton Pattern belongs to the category of Creational Patterns. If you recall from the Overview article, the Creational Patterns are the subset of Design Patterns that encapsulate the logic of object creation. In a Singleton Pattern, there is a class (Singleton class) that ensures that only a single instance of itself can be created. It also provides a global point of access to this instance. So, irrespective of where in your code base this class is instantiated, you will always get access to the same instance.
read more...
|category: C#
|Views: 468
tags:
C# another
Everyones tags:
Your Tags: