Experienced members,
I need some advice, or maybe I am missing something
simple.
I have 2 classes.
public class Manager
public property Controls as arraylist
public function CreateObject(byval type as Types) as
IObject
end class
public class myControl
implement IObject
public property Controls as arraylist
public property Parent as IObject
end class
I have a circular reference when I do this;
dim man as new manager
dim c1 as new myControl
dim c2 as new myControl
c1.controls.add(c2)
c2.Parent = c1
man.controls.add(c1)
Ok, now I have a object tree. I would like to serialize
the manager object in a human readable format. I have
used the soapformmater (ugly xml and don't need in soap
fromat) as well as the binaryformatter (works, but not
human readable).
My question is.... Is there a way to serialize this in
much the same way that the xmlserializer would? Or, is
there a design pattern different to hold a reference to
child and parent?
I would be very greatful for any direction on this.
Thanks in advance,
Chris Smith