C# Class MementoPattern.Originator

sets and gets values from the currently targeted memento. Creates new memenots and assigns current values to them.
Show file Open project: marwie/Design-Patterns-in-Unity-Example Class Usage Examples

Public Methods

Method Description
RestoreFromMemento ( Memento memento ) : string
Set ( string article ) : void
StoreInMemento ( ) : Memento

Method Details

RestoreFromMemento() public method

public RestoreFromMemento ( Memento memento ) : string
memento Memento
return string

Set() public method

public Set ( string article ) : void
article string
return void

StoreInMemento() public method

public StoreInMemento ( ) : Memento
return Memento