Class TimeSpanSerializer
- Namespace
- Stride.Core.Serialization.Serializers
- Assembly
- Stride.Core.dll
Data serializer for TimeSpan.
[DataSerializerGlobal(typeof(TimeSpanSerializer), null, DataSerializerGenericMode.None, false, false)]
public class TimeSpanSerializer : DataSerializer<TimeSpan>
- Inheritance
-
TimeSpanSerializer
- Inherited Members
Methods
Serialize(ref TimeSpan, ArchiveMode, SerializationStream)
Serializes or deserializes the given object obj
.
public override void Serialize(ref TimeSpan timeSpan, ArchiveMode mode, SerializationStream stream)
Parameters
timeSpan
TimeSpanmode
ArchiveModeThe serialization mode.
stream
SerializationStreamThe stream to serialize or deserialize to.