Showing posts with label singleton. Show all posts
Showing posts with label singleton. Show all posts

Friday, July 2, 2010

Multithreaded Singleton in C#

Many a times you run into scenario where only one instance of a class should be created in your application. If you need to know more about Singleton pattern, this article "Singleton pattern" provides good reading. There are quite a few ways to implement this (singleton) but after doing some search on the net found this one to be best for my case.