Here is the data structure that my object will have to expose (the data is NOT stored in XML, it was just the easiest way to illustrate the layout):
<Department id="Accounting">
<Employee id="1234">Joe Jones</Employee>
<Employee id="5678">Steve Smith</Employee>
</Department>
<Department id="Marketing">
<Employee id="3223">Kate Connors</Employee>
<Employee id="3218">Noble Washington</Employee>
<Employee id="3233">James Thomas</Employee>
</Department>
When I de-serialize data, how can I expose it in terms of properties on my object? If it were just the Department and EmployeeID, I think I would use a dictionary. But I also need to bind the name EmployeeName.
source
share