ClassDataSerializer<T> Class
Namespace: Stride.Core.SerializationAssembly: Stride.Core.dll
Derived from ClassDataSerializer<T>: ParameterCollectionHashSerializer ParameterCollection.Serializer
public abstract class ClassDataSerializer<T> : DataSerializer<T> where T : class, new()
Type Parameters
Name | Description |
---|---|
T |
Name | Description | |
---|---|---|
Methods | ||
PreSerialize(ref T, ArchiveMode, SerializationStream) | Performs the first step of serialization or deserialization. |
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
Type | Name | Description |
---|---|---|
T | obj | The object to process. |
ArchiveMode | mode | The serialization mode. |
SerializationStream | stream | The stream to serialize or deserialize to. |
Overrides
Stride.Core.Serialization.DataSerializer<T>.PreSerialize(T, Stride.Core.Serialization.ArchiveMode, Stride.Core.Serialization.SerializationStream)
Remarks
Typically, it will instantiate the object if [null], and if it's a collection clear it.