G
Guest
I have two assemblies that each consist of several classes.
Each object instantiated from those classes can have one or more child- and/or parentobjects that are also instantiated from those classes. Most relationships exist within one assembly, but relationships between assemblies may sometimes occur. For each relationship, I have to make sure that an object from Class1 knows that it can have an object from Class2 as one of its children. Likewise, I have to make sure that an object from Class2 knows that it can have an object from Class1 as its parent.
With a relationship existing between two assemblies, this obviously results in a circular reference. However, in this case a circular reference is exactly what is required.
How can I solve this problem? Or, in other words, how can I work around the circular reference restriction?
Any help will be very much appreciated!
Vera
Each object instantiated from those classes can have one or more child- and/or parentobjects that are also instantiated from those classes. Most relationships exist within one assembly, but relationships between assemblies may sometimes occur. For each relationship, I have to make sure that an object from Class1 knows that it can have an object from Class2 as one of its children. Likewise, I have to make sure that an object from Class2 knows that it can have an object from Class1 as its parent.
With a relationship existing between two assemblies, this obviously results in a circular reference. However, in this case a circular reference is exactly what is required.
How can I solve this problem? Or, in other words, how can I work around the circular reference restriction?
Any help will be very much appreciated!
Vera