Application of the pattern in C#

Complexity:

Popularity:

Usage examples: The Memento’s principle can be achieved using the serialization, which is quite common in C#. While it’s not the only and the most efficient way to make snapshots of an object’s state, it still allows storing state backups while protecting the originator’s structure from other objects.

Example: Structure of the Pattern

This example illustrates the structure of the Memento design pattern. It focuses on answering these questions: