Class CloneSerializer<T>
Serializer for helping cloning of Entity.
public class CloneSerializer<T> : DataSerializer<T> where T : class
Type Parameters
T
- Inheritance
-
CloneSerializer<T>
- Inherited Members
Methods
PreSerialize(ref T, ArchiveMode, SerializationStream)
Performs the first step of serialization or deserialization.
public override void PreSerialize(ref T obj, ArchiveMode mode, SerializationStream stream)
Parameters
obj
TThe object to process.
mode
ArchiveModeThe serialization mode.
stream
SerializationStreamThe stream to serialize or deserialize to.
Remarks
Typically, it will instantiate the object if [null], and if it's a collection clear it.
Serialize(ref T, ArchiveMode, SerializationStream)
Serializes or deserializes the given object obj
.
public override void Serialize(ref T obj, ArchiveMode mode, SerializationStream stream)
Parameters
obj
TThe object to serialize or deserialize.
mode
ArchiveModeThe serialization mode.
stream
SerializationStreamThe stream to serialize or deserialize to.