serialization, object within a dataset

  • Thread starter Thread starter yoni
  • Start date Start date
Y

yoni

Hi,
I've defined a DataTable, and one of the columns is a type of a class
that I created. that DataTable is added to a DataSet, which is
serialized as an XML. problem is, when I load it back, those objects
that i saved in the DataTable are not serialized (all i sget is a
string which is the class name) is there any easy solution to that? (i
mean, i can serialize these objects separate, outside of the
datatable... but i am wondering if somehow i could cause the solution
to work as-is)

thanks
 
Hi,
I've defined a DataTable, and one of the columns is a type of a class
that I created. that DataTable is added to a DataSet, which is
serialized as an XML. problem is, when I load it back, those objects
that i saved in the DataTable are not serialized (all i sget is a
string which is the class name) is there any easy solution to that? (i
mean, i can serialize these objects separate, outside of the
datatable... but i am wondering if somehow i could cause the solution
to work as-is)

Are there public properties on the object? It won't serialize private ones
by default.

David
 
Yes. this object already serializes independantly. but when inside a
datatable, it doesnt. it doesnt Like i said, it doesnt even try to
serialize it. all i get back is a string with the type name. How is
DataSet serializes columns of user -defined types? anybody can point me
to more documentation on this issue? thanks!
 
Back
Top