Whenever we want to implement a Singleton Pattern, we can always find examples by picking up a book on Design Patterns or by searching through the internet. Most of these implementations are very similar, and have been in use for some time. I have shown one such implementation that is traditionally being practiced in a multi-threaded environment. Singleton the Traditional way: public sealed class Singleton{ private static volatile Singleton instance = null; private static object syncRoot = new Object(); ......
It's been a while since I've blogged. I've just been so busy. I'm planning to rant about a few things soon.