Lawrence Avery
asked on
Serialization of a Derived Class
When serializing a derived class, the members in its base class are serialized too, correct?
If so, does the base class have to have [Serializable] attribute too?
If so, does the base class have to have [Serializable] attribute too?
What kind of serialization? Binary? XML?
ASKER
Binary
Yes, the base class must be marked as Serializable as well.
ASKER
So are you saying if base class is not Serialized, program will not compile or runtime error?
Or Are you saying --if you only Serialize the derived class, the data declared only within the derived class be serialized?
Or Are you saying --if you only Serialize the derived class, the data declared only within the derived class be serialized?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you