Table of Contents

Class EnumSerializer<T>

Namespace
Stride.Core.Serialization.Serializers
Assembly
Stride.Core.dll

Data serializer for typed enum.

public class EnumSerializer<T> : DataSerializer<T> where T : struct

Type Parameters

T
Inheritance
EnumSerializer<T>
Inherited Members

Methods

Initialize(SerializerSelector)

Initializes the specified serializer.

public override void Initialize(SerializerSelector serializerSelector)

Parameters

serializerSelector SerializerSelector

The serializer.

Remarks

This method should be thread-safe and OK to call multiple times.

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 T

The object to serialize or deserialize.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.