memento.Undo()will trigger the undo of the last operation, we can call
truerolling back changes change by change. In the above sample calling
Undowill revert back the
LastNameproperty value to its default value.
Personclass is a Radical memento entity:
memento.Undo()will trigger the undo of the last operation that in the above sample will revert the collection status removing the last added value.