.NET "Master Class"

wsuBobby

Newcomer
Joined
Jul 21, 2009
Messages
4
I have a .NET COM class that's compiled into a .dll that I'm referencing in VB6 code.

Is there a way to make a .NET COM class a "master class" (not sure what the right terminology is - which is probably why I can't google it easily)?

When I say "master class" I want to initialize an instance of this one time and all other creations of this same object are references to the original creation.

So, the first time it's created and I set all the properties on this object, elsewhere in code I create another variable of this type but I don't want a new one with it's own set of properties etc. I want this to reference the originally created one.

Is this possible?

If it is what's the name of this technique? Or how to you go about approaching it? I think it can be down just not sure how to start.

Thanks.
 
Back
Top