Skip to main content

Questions tagged [memento]

The tag has no usage guidance.

2 votes
2 answers
223 views

Memento Pattern with abstract base classes and partial restoring only

Here I illustrate the use of the Memento Pattern to restore certain (but not all) data of a class that has data in abstract base classes. A Spellcaster has spells ...
prestokeys's user avatar
  • 1,371
2 votes
0 answers
109 views

Is this a valid implementation of Memento Pattern in C#?

I've been studying design patterns from GOF for a few weeks, especially in C#, and I'm struggling with Memento Pattern. I know there are a lot of C# implementations on the web, but I came up with my ...
Vinícius Pereira's user avatar
1 vote
1 answer
122 views

Memento Pattern between sister classes

The following is my usage of the Memento Pattern when one class uses the copy constructor of a sister class (a separate derived class of the base class) and wishes to revert to the previous class. ...
prestokeys's user avatar
  • 1,371