Table of Contents

Class DecimalSerializer

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

Represents a serializer for Decimals.

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

Constructors

DecimalSerializer()

Initializes a new instance of the DecimalSerializer class.

DecimalSerializer(BsonType)

Initializes a new instance of the DecimalSerializer class.

DecimalSerializer(BsonType, RepresentationConverter)

Initializes a new instance of the DecimalSerializer class.

Properties

Converter

Gets the converter.

Instance

Gets a cached instance of a DecimalSerializer with Decimal128 representation.

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, decimal)

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.