EnumSerializer<T> Class
Namespace: Stride.Core.Serialization.SerializersAssembly: Stride.Core.dll
Data serializer for typed enum.
Derived from EnumSerializer<T>:
public class EnumSerializer<T> : DataSerializer<T> where T : struct
Type Parameters
Name | Description |
---|---|
T |
Name | Description | |
---|---|---|
Methods | ||
Initialize(SerializerSelector) | ||
Serialize(ref T, ArchiveMode, SerializationStream) | Serializes or deserializes the given object |
Methods
Initialize(SerializerSelector)
public override void Initialize(SerializerSelector serializerSelector)
Parameters
Type | Name | Description |
---|---|---|
SerializerSelector | serializerSelector |
Overrides
Serialize(ref T, ArchiveMode, SerializationStream)
Serializes or deserializes the given object obj
.
public override void Serialize(ref T obj, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
T | obj | The object to serialize or deserialize. |
ArchiveMode | mode | The serialization mode. |
SerializationStream | stream | The stream to serialize or deserialize to. |
Overrides
Stride.Core.Serialization.DataSerializer<T>.Serialize(T, Stride.Core.Serialization.ArchiveMode, Stride.Core.Serialization.SerializationStream)