I need custom configuration in following way
<root>
<group>
<groupitem>
<property1/>
<property2/>
<property3/>
<property4/>
</groupitem>
<group>
</root>
I am not finding any example of how to do that.
Following comes very close,
Nested Configuration Section app.config
but still I am stuck on defining class corresponding to groupitem. If I change property1
, property2
from element to attribute, that is easy to define.
But that will create problem if these properties have nested properties.
Question is, How to define the nested hierarchy in the way defined above?