serialization, object within a dataset

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
 
D

David Browne

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
 
Y

yoni

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top