Click here to Skip to main content
15,889,863 members
Home / Discussions / C#
   

C#

 
GeneralRe: Design Optimization Pin
hatim_ali3-Oct-04 19:33
hatim_ali3-Oct-04 19:33 
GeneralRe: Design Optimization Pin
sreejith ss nair3-Oct-04 19:48
sreejith ss nair3-Oct-04 19:48 
GeneralRe: Design Optimization Pin
Dave Kreskowiak4-Oct-04 7:07
mveDave Kreskowiak4-Oct-04 7:07 
Generalimage.saveadd function Pin
hudhud2-Oct-04 2:52
hudhud2-Oct-04 2:52 
GeneralRename XmlNode in Dom Pin
Anonymous2-Oct-04 1:52
Anonymous2-Oct-04 1:52 
GeneralRe: Rename XmlNode in Dom Pin
partyganger2-Oct-04 16:34
partyganger2-Oct-04 16:34 
AnswerRe: Rename XmlNode in Dom Pin
CMercs25-Aug-10 4:26
CMercs25-Aug-10 4:26 
GeneralSingleton Pin
hatim_ali2-Oct-04 0:46
hatim_ali2-Oct-04 0:46 
hi,

I need a global store for storing error messages. It could be done using singleton.

Now whats the difference between the following two.

1. Implement singleton pattern.

2. Creat a class. Make its contructor private. Expose the functionality using static functions.

In singleton pattern a single object is created but in 2nd approach no object is created. Which approach is better ??

Thanks...
GeneralRe: Singleton Pin
Brian Nottingham2-Oct-04 18:06
Brian Nottingham2-Oct-04 18:06 
Generalusing system.xml Pin
Mridang Agarwalla2-Oct-04 0:16
Mridang Agarwalla2-Oct-04 0:16 
GeneralRe: using system.xml Pin
hatim_ali2-Oct-04 0:33
hatim_ali2-Oct-04 0:33 
GeneralRe: using system.xml Pin
Kevin McFarlane2-Oct-04 11:50
Kevin McFarlane2-Oct-04 11:50 
Generalusing dlls Pin
Mridang Agarwalla2-Oct-04 0:15
Mridang Agarwalla2-Oct-04 0:15 
GeneralRe: using dlls Pin
hatim_ali2-Oct-04 0:35
hatim_ali2-Oct-04 0:35 
GeneralRe: using dlls Pin
Salil Khedkar4-Oct-04 1:18
Salil Khedkar4-Oct-04 1:18 
GeneralColor of GroupBox caption Pin
Joe Woodbury1-Oct-04 23:12
professionalJoe Woodbury1-Oct-04 23:12 
Generalurgent: question about update data using DataAdapter.Update Pin
fox_chen1-Oct-04 12:52
fox_chen1-Oct-04 12:52 
GeneralRe: urgent: question about update data using DataAdapter.Update Pin
Heath Stewart1-Oct-04 14:46
protectorHeath Stewart1-Oct-04 14:46 
GeneralRe: urgent: question about update data using DataAdapter.Update Pin
fox_chen2-Oct-04 9:53
fox_chen2-Oct-04 9:53 
Generalpropertygrid Pin
GoodQuestion1-Oct-04 11:44
GoodQuestion1-Oct-04 11:44 
GeneralRe: propertygrid Pin
Heath Stewart1-Oct-04 14:50
protectorHeath Stewart1-Oct-04 14:50 
GeneralRe: propertygrid Pin
Nick Parker2-Oct-04 9:57
protectorNick Parker2-Oct-04 9:57 
GeneralRe: propertygrid Pin
Alex Korchemniy2-Oct-04 10:27
Alex Korchemniy2-Oct-04 10:27 
GeneralRe: propertygrid Pin
GoodQuestion4-Oct-04 6:51
GoodQuestion4-Oct-04 6:51 
GeneralRe: propertygrid Pin
Heath Stewart4-Oct-04 7:52
protectorHeath Stewart4-Oct-04 7:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.