July 09, 2004

Singletons in .NET

At the risk of offending those who think SingletonsAreEvil, I'm posting to an article on MSDN which explains how to implement Singleton properly using Double Checked Locking to avoid syncronization issues. Occasionally, there is a solid reason for using Singletons and we might as well use them correctly, especially in multi-threaded contexts like ASP.NET.

Posted by Christian at July 9, 2004 01:13 PM |
Comments
Post a comment