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 Thursday, March 18, 2010 5:52:59 AM (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.