Class ObjectIdSerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a serializer for ObjectIds.
public sealed class ObjectIdSerializer : StructSerializerBase<ObjectId>, IBsonSerializer<ObjectId>, IBsonSerializer, IRepresentationConfigurable<ObjectIdSerializer>, IRepresentationConfigurable, IHasRepresentationSerializer
- Inheritance
-
ObjectIdSerializer
- Implements
- Inherited Members
- Extension Methods
Constructors
- ObjectIdSerializer()
Initializes a new instance of the ObjectIdSerializer class.
- ObjectIdSerializer(BsonType)
Initializes a new instance of the ObjectIdSerializer class.
Properties
- Instance
Gets a cached instance of an ObjectId serializer.
- 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, ObjectId)
Serializes a value.
- WithRepresentation(BsonType)
Returns a serializer that has been reconfigured with the specified representation.