|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
serialization, object within a datasetHi,
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 <y***@nobhillsoft.com> wrote in message
news:1154442197.870934.221610@i42g2000cwa.googlegroups.com... Are there public properties on the object? It won't serialize private ones > 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) > 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! 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
Fire event
Space in textBox ToolBox Icon corruption VB2005 Sub Class Namespace? One variable can call many form Download File From Content-Disposition Error adding rows to tables How do I copy all text files into one??? eg; Shell("copy c:\CND\dr*.txt C:\CND\TestC.txx") function help please how to control/check Date datatype inputs in textobx? |
|||||||||||||||||||||||