C# Класс MementoPattern.Originator

sets and gets values from the currently targeted memento. Creates new memenots and assigns current values to them.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
RestoreFromMemento ( Memento memento ) : string
Set ( string article ) : void
StoreInMemento ( ) : Memento

Описание методов

RestoreFromMemento() публичный Метод

public RestoreFromMemento ( Memento memento ) : string
memento Memento
Результат string

Set() публичный Метод

public Set ( string article ) : void
article string
Результат void

StoreInMemento() публичный Метод

public StoreInMemento ( ) : Memento
Результат Memento