Table of Contents

Class TupleSerializer<T1>

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

Represents a serializer for a Tuple<T1>.

public sealed class TupleSerializer<T1> : SealedClassSerializerBase<Tuple<T1>>, IBsonSerializer<Tuple<T1>>, IBsonSerializer, IBsonTupleSerializer

Type Parameters

T1

The type of item 1.

Inheritance
TupleSerializer<T1>
Implements
Inherited Members
Extension Methods

Constructors

TupleSerializer()

Initializes a new instance of the TupleSerializer<T1> class.

TupleSerializer(IBsonSerializerRegistry)

Initializes a new instance of the TupleSerializer<T1> class.

TupleSerializer(IBsonSerializer<T1>)

Initializes a new instance of the TupleSerializer<T1> class.

Properties

Item1Serializer

Gets the Item1 serializer.

Methods

DeserializeValue(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a class.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

GetItemSerializer(int)

Gets ths serializer for an item.

SerializeValue(BsonSerializationContext, BsonSerializationArgs, Tuple<T1>)

Serializes a value of type {TValue}.