Design Pattern Examples
Overview of object-oriented design patterns
IMemento Interface Reference

Represents a single memento, a single snapshot of the state of the Memento_TextObject class as represented by the private class Memento_TextObject.Memento. More...

Inheritance diagram for IMemento:
Inheritance graph
Collaboration diagram for IMemento:
Collaboration graph

Properties

string Name [get]
 The name of the memento (snapshot). Useful for displaying a list of mementos in an undo list. In this case, the name of each memento is the operation that triggered the creation of the memento.
 

Detailed Description

Represents a single memento, a single snapshot of the state of the Memento_TextObject class as represented by the private class Memento_TextObject.Memento.

Definition at line 13 of file Memento.cs.

Property Documentation

◆ Name

string Name
get

The name of the memento (snapshot). Useful for displaying a list of mementos in an undo list. In this case, the name of each memento is the operation that triggered the creation of the memento.

Implemented in Memento_TextObject.Memento.

Definition at line 21 of file Memento.cs.

Referenced by Memento_Exercise.Memento_Undo(), Visitor_Shop.PickupOrder(), Visitor_Shop.PlaceOrder(), and EntryInformation.ToString().


The documentation for this interface was generated from the following file: