Table of Contents

Class TupleSerializer<T1, T2, T3, T4>

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

Serializer for a 4-tuple.

[DataSerializerGlobal(typeof(TupleSerializer<,,,>), typeof(Tuple<,,,>), DataSerializerGenericMode.GenericArguments, false, false)]
public class TupleSerializer<T1, T2, T3, T4> : DataSerializer<Tuple<T1, T2, T3, T4>>

Type Parameters

T1

The type of the tuple's component 1.

T2

The type of the tuple's component 2.

T3

The type of the tuple's component 3.

T4

The type of the tuple's component 4.

Inheritance
DataSerializer<Tuple<T1, T2, T3, T4>>
TupleSerializer<T1, T2, T3, T4>
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 Tuple<T1, T2, T3, T4>, ArchiveMode, SerializationStream)

Serializes or deserializes the given object obj.

public override void Serialize(ref Tuple<T1, T2, T3, T4> obj, ArchiveMode mode, SerializationStream stream)

Parameters

obj Tuple<T1, T2, T3, T4>

The object to serialize or deserialize.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.