Hi,

I'm trying to deserialize a DataSet inside another class. I had some problems, 
so had to write a deserializing constructor. The app has been working for 
some time with the server side code running on Mono under Linux, with the 
client running on Windows XP. I'm trying to port the client to Linux now the 
WinForms support is getting so good.

I have a code fragment like the following:

public MyClass (SerializationInfo info, SerializationContext ctxt){
        DataSet ds = info.GetValue("ds", typeof(DataSet));
        int tables_count = ds.Tables.Count;
}

I'm getting a System.NullReferenceException when trying to access the Tables 
property. My debugging has led me to believe that the DataSet is not being 
deserialized correctly, but only under Mono.

Is this even supported yet? How far along is it? Is there a standard way to 
remote with DataSets that I might not be using?

Any help or pointers will be greatly appreciated,

Adam
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to