Possible Duplicate:
Singleton: How should it be used
Hi all,
I am new to .net and in programming too. I want to that what is the real time scenario when one should use singleton design pattern.
Thanks in advance,
Anant
Possible Duplicate:
Singleton: How should it be used
Hi all,
I am new to .net and in programming too. I want to that what is the real time scenario when one should use singleton design pattern.
Thanks in advance,
Anant
Please take a look at this article. It contains a good introduction in the Singletons subject for C#.
When you have an object that's expensive to create, and there is logical that only one instance should exist. It will come to you :)