Table of Contents

Class BooleanSerializer

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

Represents a serializer for Booleans.

public class BooleanSerializer : StructSerializerBase<bool>, IBsonSerializer<bool>, IBsonSerializer, IRepresentationConfigurable<BooleanSerializer>, IRepresentationConfigurable, IHasRepresentationSerializer
Inheritance
BooleanSerializer
Implements
Inherited Members
Extension Methods

Constructors

BooleanSerializer()

Initializes a new instance of the BooleanSerializer class.

BooleanSerializer(BsonType)

Initializes a new instance of the BooleanSerializer class.

Properties

Instance

Gets a cached instance of a BooleanSerializer.

Representation

Gets the representation.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

Serialize(BsonSerializationContext, BsonSerializationArgs, bool)

Serializes a value.

WithRepresentation(BsonType)

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