public static void Main() { var originator1 = new Originator("Originator"); originator1.Append("List of Programming Languages\n"); originator1.Append("C++"); originator1.Append("Java"); originator1.Append("C#"); originator1.Append("Python"); originator1.Append("Groovy"); originator1.Append("Ruby"); var memento = originator1.CreateMemento(); var originator2 = new Originator(); originator2.SetMemento(memento); originator2.Print(); Console.ReadKey(); }