How do you mark a class as the equivalent of VB's PublicNotCreatable? I only to be able to create an instance of a class from a class factory inside the same library, nowhere else.
:)
Printable View
How do you mark a class as the equivalent of VB's PublicNotCreatable? I only to be able to create an instance of a class from a class factory inside the same library, nowhere else.
:)
Make the constructor Friend instead of public.
That was too simple, I should have figured it out. Oh well, looks like its suicide again for me.
:)