Home All Groups Group Topic Archive Search About

serialization, object within a dataset

Author
1 Aug 2006 2:23 PM
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

Author
1 Aug 2006 2:46 PM
David Browne
<y***@nobhillsoft.com> wrote in message
news:1154442197.870934.221610@i42g2000cwa.googlegroups.com...
> 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
Author
1 Aug 2006 3:08 PM
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!

David Browne wrote:
Show quoteHide quote
> <y***@nobhillsoft.com> wrote in message
> news:1154442197.870934.221610@i42g2000cwa.googlegroups.com...
> > 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