Table of Contents

Class ClassDataSerializer<T>

Namespace
Stride.Core.Serialization
Assembly
Stride.Core.dll
public abstract class ClassDataSerializer<T> : DataSerializer<T> where T : class, new()

Type Parameters

T
Inheritance
ClassDataSerializer<T>
Derived
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 T

The object to process.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.

Remarks

Typically, it will instantiate the object if [null], and if it's a collection clear it.