Class ValueTupleSerializer<T1, T2>
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a serializer for a (T1, T2).
public sealed class ValueTupleSerializer<T1, T2> : StructSerializerBase<(T1, T2)>, IBsonSerializer<(T1, T2)>, IBsonSerializer, IBsonTupleSerializer
Type Parameters
T1
The type of item 1.
T2
The type of item 2.
- Inheritance
-
SerializerBase<(T1, T2)>StructSerializerBase<(T1, T2)>ValueTupleSerializer<T1, T2>
- Implements
-
IBsonSerializer<(T1, T2)>
- Inherited Members
- Extension Methods
Constructors
- ValueTupleSerializer()
Initializes a new instance of the ValueTupleSerializer<T1, T2> class.
- ValueTupleSerializer(IBsonSerializerRegistry)
Initializes a new instance of the ValueTupleSerializer<T1, T2> class.
- ValueTupleSerializer(IBsonSerializer<T1>, IBsonSerializer<T2>)
Initializes a new instance of the ValueTupleSerializer<T1, T2> class.
Properties
- Item1Serializer
Gets the Item1 serializer.
- Item2Serializer
Gets the Item2 serializer.
Methods
- Deserialize(BsonDeserializationContext, BsonDeserializationArgs)
Deserializes a value.
- GetItemSerializer(int)
Gets ths serializer for an item.
- Serialize(BsonSerializationContext, BsonSerializationArgs, (T1, T2))
Serializes a value.