K
Kevin
In .Net 2.0 I have a dataset that inherits from a typed dataset
(created using the built in tools).
The typed dataset is serializable, and when I look at the source in the
generated vb class it has lots of stuff to do with serializing in it.
When I try to serialize it, it all works fine.
I would think that if I inherit from this typed dataset then it would
also inherit all the serializable stuff but it doesnt seem to. When I
try I get an error saying:
Type 'HHD_.MeterTree.ConsViewerDataset' in Assembly 'HHD_.MeterTree,
Version=1.0.0.1, Culture=neutral, PublicKeyToken=0b07967f4983a577' is
not marked as serializable.
i have read around and but most answers dont seem to relate inheriting
from a typed dataset and involve writing lots of code to implement
serializable, however this seems unnecessary as my base class has
everything I need surely!
I have added:
'<Serializable()> _
and
Public Overrides Sub GetObjectData(ByVal info As
System.Runtime.Serialization.SerializationInfo, ByVal context As
System.Runtime.Serialization.StreamingContext)
MyBase.GetSerializationData(info, context)
End Sub
to my inherited class
however now it goes into 'GetObjectData' but then comes up with the
error:
Member 'XmlDiffGram' was not found.
please, someone help me!!!
Thanks in advance.
Kevin
(created using the built in tools).
The typed dataset is serializable, and when I look at the source in the
generated vb class it has lots of stuff to do with serializing in it.
When I try to serialize it, it all works fine.
I would think that if I inherit from this typed dataset then it would
also inherit all the serializable stuff but it doesnt seem to. When I
try I get an error saying:
Type 'HHD_.MeterTree.ConsViewerDataset' in Assembly 'HHD_.MeterTree,
Version=1.0.0.1, Culture=neutral, PublicKeyToken=0b07967f4983a577' is
not marked as serializable.
i have read around and but most answers dont seem to relate inheriting
from a typed dataset and involve writing lots of code to implement
serializable, however this seems unnecessary as my base class has
everything I need surely!
I have added:
'<Serializable()> _
and
Public Overrides Sub GetObjectData(ByVal info As
System.Runtime.Serialization.SerializationInfo, ByVal context As
System.Runtime.Serialization.StreamingContext)
MyBase.GetSerializationData(info, context)
End Sub
to my inherited class
however now it goes into 'GetObjectData' but then comes up with the
error:
Member 'XmlDiffGram' was not found.
please, someone help me!!!
Thanks in advance.
Kevin