C
CSharper
I have an xml like the following
<Department Name="HR">
<Description>HR in Iowa</Description>
<SubDepartment Name="Payroll">
<Description>Payroll in CR</Description>
<Personal Name=X" Age="30">
<Description>Payroll Executive</Description>
</Personal>
</SubDepartment>
</Department>
I will get an XMl of this type with 1000s of rows, I would like to
create a list of class of Type Department on the fly. I was able to
create it with Linq, byt mine was little ugly. What is the right way
to do?
What is the best way to do it in Linq?
Thanks,
<Department Name="HR">
<Description>HR in Iowa</Description>
<SubDepartment Name="Payroll">
<Description>Payroll in CR</Description>
<Personal Name=X" Age="30">
<Description>Payroll Executive</Description>
</Personal>
</SubDepartment>
</Department>
I will get an XMl of this type with 1000s of rows, I would like to
create a list of class of Type Department on the fly. I was able to
create it with Linq, byt mine was little ugly. What is the right way
to do?
What is the best way to do it in Linq?
Thanks,