Hello,
I want to know how could i have an initialize method in a namespace.
I want to make an auto-registration component like that :
in ParentCollectionUnit
public class myParentCollection
{
public static GetInstance();
// it is a singloton parent with a addSonCollection
public addSonCollection(SonCollection NewSon);
}
in a specific SonCollection
public class SonCollection: MySpecificSon
{
}
this is the initialize process i want to make.
ParentCollectionUnit.GetInstance().addSonCollectio n(MySpecificSon);
Like that, i can have one new unit with a specific SonCollection who
are put in my project and will be automaticly refered by :
myParentCollection.
I'm used Visual Studio 2003.
Thanks for your help.