Table of Contents

Class DecimalSerializer

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

Represents a serializer for Decimals.

public 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.

Decimal128Instance

Gets a cached instance of a DecimalSerializer with Decimal128 representation.

Representation

Gets the representation.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

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.