// Restores original state public void SetMemento(Memento memento) { Console.WriteLine("Restoring state..."); State = memento.State; }