Hi,
I'm new to C# design patterns and I've read your sample code of patterns Composite and Visitor.
Its very interessing but I think there is great benefit by combining Composite and Visitor Patterns.
Use Composite to build a tree, for example:
<persons>
<person name="pers1">
<childrens>
<child name="child1"/>
<child name="child2"/>
</childrens>
<person name="pers2"/>
<person name="pers3"/>
</persons>
And use Visitor to visit each of the Tree nodes.
But my question is this: How can we build such a structure?
Thanks