XML Deserialization of complex object
Posted
by nils_gate
on Stack Overflow
See other posts from Stack Overflow
or by nils_gate
Published on 2010-04-12T09:08:51Z
Indexed on
2010/04/12
9:13 UTC
Read the original article
Hit count: 483
I have xml structure like this:
<Group id="2" name="Third" parentid="0" />
<Group id="6" name="Five" parentid="4" />
<Group id="3" name="Four" parentid="2" />
<Group id="4" name="Six" parentid="1" />
parent is denotes Group's Id.
The Constructor of Group reads like:
public Group(string name, int ID, Group parent)
While De-serializing, how do I get parent using Id and pass into group?
© Stack Overflow or respective owner