June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to serialize only part of an object or an object that inherits from another nonserializable object.
Create a dedicated, serializable object to hold the information that must be persisted.
The memento pattern allows you to handle object serialization in a more flexible manner. Some of the reasons you might use the memento pattern include the following:
You want to serialize an object that wouldn’t otherwise be serializable (perhaps because it derives from a nonserializable object).
You want to serialize a portion of an object. The NonSerialized attribute can also help in this case, but you can’t use it to prevent the serialization of the information in a class ...
Read now
Unlock full access