Singletons Revisited(blueonionsoftware.com)
submitted by
blueonion(150) 3 years, 7 months ago
OK, so maybe singletons are not the pure evil suggested earlier. While useful, the usual implementation of the pattern requires exposing an Instance member to enforce the singleton semantics. An alternative shown in this article allows singletons to appear and act more like static classes and hides the implementation from the caller.
|category: C#
|Views: 10
tags:
C# another
Everyones tags:
Your Tags: