Table of Contents

Class DateTimeOffsetSerializer

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

Represents a serializer for DateTimeOffsets.

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

Constructors

DateTimeOffsetSerializer()

Initializes a new instance of the DateTimeOffsetSerializer class.

DateTimeOffsetSerializer(BsonType)

Initializes a new instance of the DateTimeOffsetSerializer class.

Properties

Representation

Gets the representation.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

Serialize(BsonSerializationContext, BsonSerializationArgs, DateTimeOffset)

Serializes a value.

WithRepresentation(BsonType)

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