using Serializable attribute with base class only in class declaration
I have a class which uses object serializer to serialize properties. The
class is derived from another class as follows
[Serializable]
public class TargetInfo:
PropertyHandler
When I call the serialize method, serializer tries to serialize the
PropertyHandler class as well and throws different exceptions since
PropertyHandler class does not comply to the Serialization rules. How can
I avoid serialization of PropertyHandler and serialize only TargetInfo?
Any help/ideas will be much appreciated.
Thanks
No comments:
Post a Comment