Class TimeSpanSerializer
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll
Represents a serializer for Timespans.
public sealed class TimeSpanSerializer : StructSerializerBase<TimeSpan>, IBsonSerializer<TimeSpan>, IBsonSerializer, IRepresentationConfigurable<TimeSpanSerializer>, IRepresentationConfigurable, IHasRepresentationSerializer
Inheritance
TimeSpanSerializer
Implements
Inherited Members
Extension Methods
Constructors
Initializes a new instance of the TimeSpanSerializer class.
Initializes a new instance of the TimeSpanSerializer class.
TimeSpanSerializer(BsonType, TimeSpanUnits)
Initializes a new instance of the TimeSpanSerializer class.
Properties
Gets the representation.
Gets the units.
Methods
Deserialize(BsonDeserializationContext, BsonDeserializationArgs)
Deserializes a value.
Determines whether the specified object is equal to the current object.
Serves as the default hash function.
Serialize(BsonSerializationContext, BsonSerializationArgs, TimeSpan)
Serializes a value.
Returns a serializer that has been reconfigured with the specified representation.
WithRepresentation(BsonType, TimeSpanUnits)
Returns a serializer that has been reconfigured with the specified representation and units.