Design Pattern Examples
Overview of object-oriented design patterns
Memento.cs File Reference

The Memento_TextObject class used in the Memento pattern. More...

Go to the source code of this file.

Classes

interface  IMemento
 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...
 
class  Memento_TextObject
 Container for a string. Need to use a class that allows the text to be changed while the container (this class) remains constant. This way, operations can be applied to the text and the container's contents change but not the container (strings are immutable in C#; this dances around that problem). More...
 
class  Memento_TextObject.Memento
 Represents a single memento (snapshot) of the text state before an operation is applied. The operation becomes the name of the memento for display purposes. More...
 

Namespaces

namespace  DesignPatternExamples_csharp
 The namespace containing all Design Pattern Examples implemented in C#.
 

Detailed Description

The Memento_TextObject class used in the Memento pattern.

Definition in file Memento.cs.