Groups > Asp .Net > Advanced ASP.NET Architecture > Re: Singleton Design pattern




Singleton Design pattern

Singleton Design pattern
Fri, 28 Mar 2008 09:58:47 +000
What is singleton design pattern? Please explain it with examples like how to
create it and how to imlement it. 

Thanks.
Post Reply
Re: Singleton Design pattern
Fri, 28 Mar 2008 11:03:54 +000
Hi,

the definition of it is this: Ensure a class has only one instance and provide a
global point of access to it. 


If you like examples and UML take a look at this page:
http://www.dofactory.com/Patterns/PatternSingleton.aspx.

or on our wiki: http://wiki.asp.net/page.aspx/288/singleton/

A nice book about design patterns is the "Head first design patterns".

 

Grz, Kris.
Post Reply
Re: Singleton Design pattern
Fri, 28 Mar 2008 11:03:58 +000
Have you checked out the ASP.net Wiki entery for the Singleton Design Pattern?
http://wiki.asp.net/page.aspx/288/singleton/
Post Reply
about | contact