Persistate API documentation
Clone Method
NamespacesPersistatePersistentClone()()()()

[This is preliminary documentation and is subject to change.]

Creates a copy of this object.
Declaration Syntax
C#
public virtual Object Clone()
Return Value
The cloned object.
Remarks

The standard implementation of the Clone method for Persistent objects simply performs a shallow memberwise clone. This method is used to implement the Clone on Mutate function in ClassCategories such as Stable and Logged. The RestoreUnmodified method uses this copy to restore the original unmodified version of the object.

As this is a shallow clone, if you want to be able to restore reference objects (other than strings which are immutable), such as image or binary fields then you should override Clone appropriately.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)