Table of Contents

Class Int16Serializer

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

Represents a serializer for Int16s.

public sealed class Int16Serializer : StructSerializerBase<short>, IBsonSerializer<short>, IBsonSerializer, IRepresentationConfigurable<Int16Serializer>, IRepresentationConfigurable, IHasRepresentationSerializer, IRepresentationConverterConfigurable<Int16Serializer>, IRepresentationConverterConfigurable
Inheritance
Int16Serializer
Implements
Inherited Members
Extension Methods

Constructors

Int16Serializer()

Initializes a new instance of the Int16Serializer class.

Int16Serializer(BsonType)

Initializes a new instance of the Int16Serializer class.

Int16Serializer(BsonType, RepresentationConverter)

Initializes a new instance of the Int16Serializer class.

Properties

Converter

Gets the converter.

Representation

Gets the representation.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

Equals(object)

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

GetHashCode()

Serves as the default hash function.

Serialize(BsonSerializationContext, BsonSerializationArgs, short)

Serializes a value.

WithConverter(RepresentationConverter)

Returns a serializer that has been reconfigured with the specified item serializer.

WithRepresentation(BsonType)

Returns a serializer that has been reconfigured with the specified representation.