Singleton pattern implementation might seem very easy and straight-forward.
But if your application is used at high user/sec rate, you might end up having a problem.
Check this out to look at the ways in which Singleton can be implemented with thread-safety:
http://www.yoda.arachsys.com/csharp/singleton.html
Remember Me
Page rendered at Friday, September 03, 2010 4:53:19 PM (India Standard Time, UTC+05:30)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent the views of Microsoft Corporation in anyway.