D
Daniel Klein
I have a situation where I need to prevent just anyone from instantiating a
particular class. The class is instantiated via certain methods from other
classes in the solution, but those are the only classes/methods allowed to
do this.
How can I prevent all other classes from creating a new instance of my
'restricted' class? Or, to put it another way, how can the restricted class
'know' who is trying to instantiate it?
Thanks,
Daniel Klein
Dublin, Ohio USA
particular class. The class is instantiated via certain methods from other
classes in the solution, but those are the only classes/methods allowed to
do this.
How can I prevent all other classes from creating a new instance of my
'restricted' class? Or, to put it another way, how can the restricted class
'know' who is trying to instantiate it?
Thanks,
Daniel Klein
Dublin, Ohio USA