Table of Contents

Class BooleanSerializer

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

Represents a serializer for Booleans.

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

Equals(object)

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

GetHashCode()

Serves as the default hash function.

Serialize(BsonSerializationContext, BsonSerializationArgs, bool)

Serializes a value.

WithRepresentation(BsonType)

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