Deserialized object not the same as the one I serialized


hi,

i attempting use import-clixml , export-clixml save dataset disk retrieval later. object returned when import of type "deserialized.system.data.dataset". suppose not concern me, unable access datatable name in "deseriaized" returned object.

this command on returned object gives expected results:

$ds.tables[0]

this 1 not:

$ds.tables["mytable"]   (this appears empty)

furthermore $ds.tables[0].tablename returns "mytable"

is bug? there way convert "deserialized" object normal dataset? other suggestions?

i don't think possible convert deserialized object original dataset. instead should prepare data , serialize data after that.

 

there maybe 1 more possible solution - use .net serialization/deserializaton. maybe serialization xml (class xmlserializer), or maybe binary serialization work (http://msdn.microsoft.com/en-us/library/4abbf6k0%28vs.71%29.aspx)



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Round Robin is killing performance on our network

WMI Repository 4GB limit - Win 2003 Ent Question

Change home folder default permission?