what is the best way to serialize with XmlSerialize classes with cross reference?
In the example below multiple B classes can point to the same A object. How do I serialize C without writing multiple A in the xml? My classes are big so I prefer using automatic serialization and not writing a complete
public class A{
int id;
}
public class B{
int id;
A a;
}
public class Root{
B[] bArray;
}
Should not make any difference that the classes are looped.