Table of Contents

Class UInt16Serializer

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

Represents a serializer for UInt16s.

[CLSCompliant(false)]
public sealed class UInt16Serializer : StructSerializerBase<ushort>, IBsonSerializer<ushort>, IBsonSerializer, IRepresentationConfigurable<UInt16Serializer>, IRepresentationConfigurable, IHasRepresentationSerializer, IRepresentationConverterConfigurable<UInt16Serializer>, IRepresentationConverterConfigurable
Inheritance
UInt16Serializer
Implements
Inherited Members
Extension Methods

Constructors

UInt16Serializer()

Initializes a new instance of the UInt16Serializer class.

UInt16Serializer(BsonType)

Initializes a new instance of the UInt16Serializer class.

UInt16Serializer(BsonType, RepresentationConverter)

Initializes a new instance of the UInt16Serializer 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, ushort)

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.