TupleSerializer<T1, T2, T3> Class
Namespace: Stride.Core.Serialization.SerializersAssembly: Stride.Core.dll
Serializer for a 3-tuple.
System.Object → DataSerializer → DataSerializer<System.Tuple<T1, T2, T3>> →
TupleSerializer<T1, T2, T3>
Derived from TupleSerializer<T1, T2, T3>:
[DataSerializerGlobal(typeof(TupleSerializer<,, >), typeof(Tuple<,, >), DataSerializerGenericMode.GenericArguments, false, false)]
public class TupleSerializer<T1, T2, T3> : DataSerializer<Tuple<T1, T2, T3>>
Type Parameters
Name | Description |
---|---|
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. |
Name | Description | |
---|---|---|
Methods | ||
Initialize(SerializerSelector) | Initializes the specified serializer. |
|
Serialize(ref Tuple<T1, T2, T3>, ArchiveMode, SerializationStream) | Serializes or deserializes the given object |
Methods
Initialize(SerializerSelector)
Initializes the specified serializer.
public override void Initialize(SerializerSelector serializerSelector)
Parameters
Type | Name | Description |
---|---|---|
SerializerSelector | serializerSelector | The serializer. |
Overrides
Remarks
This method should be thread-safe and OK to call multiple times.
Serialize(ref Tuple<T1, T2, T3>, ArchiveMode, SerializationStream)
Serializes or deserializes the given object obj
.
public override void Serialize(ref Tuple<T1, T2, T3> obj, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
System.Tuple<T1, T2, T3> | obj | |
ArchiveMode | mode | The serialization mode. |
SerializationStream | stream | The stream to serialize or deserialize to. |
Overrides
Stride.Core.Serialization.DataSerializer<System.Tuple<T1, T2, T3>>.Serialize(System.Tuple<T1, T2, T3>, Stride.Core.Serialization.ArchiveMode, Stride.Core.Serialization.SerializationStream)