Rate It (5) Thank you for your feedback!
TODO: No content entered
Revision number 1, Saturday, February 16, 2008 3:21:11 PM by This is not the most up to date version of this article. The most recent version can be found here.
You must Login to comment.
Good Article. Now I got basic idea about singleton pattern. Thanks
cool!!!, thanks for the info, really helps me to understand SINGLETON.
Is this thread safe?
since the singleton is created via a static initializer, its creation is thread-safe.
sorry, have you looked at this, before writing this article? http://msdn.microsoft.com/en-us/library/ms954629.aspx sealed class Singleton { private Singleton() {} public static readonly Singleton Instance = new Singleton(); } i think it's better way to implement singleton in C#
(last 30 days)
Advertise Here