take powershell object save as xml and load in c#

LILICA

New Member
I have the following powershell script that scans a location and adds the file details to a xml file, \[code\]Get-ChildItem -recurse c:\DATA | Select-Object * , @{Name="Kbytes";Expression={ "{0:N0}" -f ($_.Length / 1Kb) }},@{Name="Age";Expression={ (((Get-Date) - $_.CreationTime).Days) }} | Export-Clixml c:\DATA\Final.xml \[/code\]As far as I understand this should be a object in the .net framework, assuming a dataset ?what I would like to do is load this object into a c# application and use it as a dataset.How would I load the object into a dataset in c# ?
 
Back
Top