I have a class called "Template" and one more class called "TemplateCollections" (This is just a collection Template classes)
I will be serializing the TemplateCollections class and sending to a different .net application, where they will be deserializing the object back.
When I add Template class to TemplateCollections, I would like to maintain a parent-child relation between the classes.
For e.g I have 4 Template classes - Template1, Template2, Template3, Template4
Template2 is child of Template1
Template3 is child of Template2
Template4 is child of Template1
What is the optimized way of achieving this, considering the serialization process?