A
Arne Rasmussen
Hi there
I have this problem - might seem stupid to you and a cause of poor design
....but nevertheless it's a problem that i'm facing:
I have 1 to X singletons witch have exactly the same code - but they are in
different namespaces as they hold some information witch belongs to this
namespace.
Anyway they are called in the intizialising of my application and thereby
instantiated - and filled with the proper information .
Now the way i do taht is exactly the same way for all my singletons - and
therby repeated code for each and every.
I would like to have a method which takes a singleton and a ...say
filename... and do the work ...but i can't figure out how to do this - i
have tried with an interface - but as we all now it don't like the keyword
static
.....somebody know what to do???? - should mention that i'm a
relative newbee to C#
Thanx in advance
Regards
A. Rasmussen
I have this problem - might seem stupid to you and a cause of poor design
....but nevertheless it's a problem that i'm facing:
I have 1 to X singletons witch have exactly the same code - but they are in
different namespaces as they hold some information witch belongs to this
namespace.
Anyway they are called in the intizialising of my application and thereby
instantiated - and filled with the proper information .
Now the way i do taht is exactly the same way for all my singletons - and
therby repeated code for each and every.
I would like to have a method which takes a singleton and a ...say
filename... and do the work ...but i can't figure out how to do this - i
have tried with an interface - but as we all now it don't like the keyword
static

relative newbee to C#
Thanx in advance
Regards
A. Rasmussen