Ejemplo n.º 1
0
 public void restoreFromMemento(Memento memento)
 {
     Console.WriteLine("Originator: State after restoring from Memento: " + state);
     this.state = memento.getSavedState();
 }