Singleton

 Rate It (5)

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.

Comments

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#

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. mbanavige (5)
  2. SGWellens (4)
  3. maartenba (2)
  4. rami_nassar (2)
  5. stiansol (2)
  6. MisterFantastic (2)
  7. satish1.v (1)
  8. raklos (1)
  9. mosessaur (1)
  10. Jos Branders (1)

Advertise Here

Microsoft Communities
Page view counter