Im also having problems now with above, my member classes do not seem
to be being (de)/serialized correctly
e.g.
virtual void GetObjectData(SerializationInfo^ info, StreamingContext
context){
info->AddValue("_si", SchemeInputs);
}
Where SchemeInputs are instances of my own class previously auto
serialized.
HerbyClass(SerializationInfo^ info, StreamingContext context){
ResultArray temp;
SchemeInputs = safe_cast<ResultArray^>(info->GetValue("_si",
temp.GetType()));
}
Anbody know what is wrong with above?
If class B inherits from A and has class C as a member and i implement
ISerializable for class B, does this mean i have to also implement
ISerializable for class A and C ???
Again i have found away around the problem, i have removed
ISerializable and implemented IDeserializationCallback
I have changed my private [NonSerialized] members from
HerbyClass m_c;
To
HerbyClass^ m_c;
and then dynamically create them on the invocation of
virtual void OnDeserialization(Object^ sender)
This is not that intuitive, im not convinced its correct ????