C# Class MementoPattern.Originator

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

Méthodes publiques

Méthode Description
RestoreFromMemento ( Memento memento ) : string
Set ( string article ) : void
StoreInMemento ( ) : Memento

Method Details

RestoreFromMemento() public méthode

public RestoreFromMemento ( Memento memento ) : string
memento Memento
Résultat string

Set() public méthode

public Set ( string article ) : void
article string
Résultat void

StoreInMemento() public méthode

public StoreInMemento ( ) : Memento
Résultat Memento