Sage Modeling and Simulation Library

IMemento Members

The IMemento type exposes the following members.

Methods


  Name Description
Public method CreateTarget
Creates an empty copy of whatever object this memento can reconstitute. Some mementos are only able to reconstitute into their source objects (they can only be used to restore state in the same object), and these mementos will return a reference to that object.)
Public method Equals(IMemento)
Returns true if the two mementos are semantically equal.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetDictionary
Emits an IDictionary form of the memento that can be, for example, dumped to Trace.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Load
Loads the contents of this Memento into the provided object.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property Parent
This holds a reference to the memento, if any, that contains this memento.

Events


  Name Description
Public event OnLoadCompleted
This event is fired once this memento has completed its Load(ISupportsMementos ism) invocation.