Table of Contents

Class DateTimeOffsetSerializer

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

Represents a serializer for DateTimeOffsets.

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

Equals(object)

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

GetHashCode()

Serves as the default hash function.

Serialize(BsonSerializationContext, BsonSerializationArgs, DateTimeOffset)

Serializes a value.

WithRepresentation(BsonType)

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