Posted on: 7/24/2012 11:51:49 PM | Views : 269

I'm new to serialization, so most likely I am missing something obvious!
I have a class called ResultsCollection that is a four-dimension data structure -- a collection of objects that are derived from the DataSet class.  Each modified DataSet holds a collection of objects derived from DataTable.  The relevant bits of code are:
public class ResultsCollection : CollectionBase { // indexer public MyDataSet this[int index] { get { return (MyDataSet)List[index]; } } } public class MyDataSet : DataSet { // member variable that *overrides* the Tables property of the standard DataSet class public new TablesCollection Tables; } public class TablesCollection : CollectionBase { // indexer public MyDataTable this[int index] { get { return (MyDataTable)List[index]; } } } public class MyDataTable : DataTable { ... } For all classes concerned, I have added the [Serializable] attribute and implemented ...

Go to the complete details ...