public void SetState(MyClass2 mc) { // set MyClass2 state by setting properties of MyClass2 instance. }
public MyClassMemento(MyClass2 mc) { // get MyClass2 state by querying properties of MyClass instance. }