Table of Contents

Class ValueTupleSerializer<T1>

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

Serializer for a 1-value tuple.

[DataSerializerGlobal(typeof(ValueTupleSerializer<>), typeof(ValueTuple<>), DataSerializerGenericMode.GenericArguments, false, false)]
public class ValueTupleSerializer<T1> : DataSerializer<ValueTuple<T1>>

Type Parameters

T1

The type of the tuple's component 1.

Inheritance
ValueTupleSerializer<T1>
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 ValueTuple<T1>, ArchiveMode, SerializationStream)

Serializes or deserializes the given object obj.

public override void Serialize(ref ValueTuple<T1> obj, ArchiveMode mode, SerializationStream stream)

Parameters

obj ValueTuple<T1>

The object to serialize or deserialize.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.