C# 클래스 MementoPattern.Originator

sets and gets values from the currently targeted memento. Creates new memenots and assigns current values to them.
파일 보기 프로젝트 열기: marwie/Design-Patterns-in-Unity-Example 1 사용 예제들

공개 메소드들

메소드 설명
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