Table of Contents

Class GuidSerializer

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

Represents a serializer for Guids.

public sealed class GuidSerializer : StructSerializerBase<Guid>, IBsonSerializer<Guid>, IBsonSerializer, IRepresentationConfigurable<GuidSerializer>, IRepresentationConfigurable, IHasRepresentationSerializer
Inheritance
GuidSerializer
Implements
Inherited Members
Extension Methods

Constructors

GuidSerializer()

Initializes a new instance of the GuidSerializer class.

GuidSerializer(BsonType)

Initializes a new instance of the GuidSerializer class.

GuidSerializer(GuidRepresentation)

Initializes a new instance of the GuidSerializer class.

Properties

GuidRepresentation

Gets the Guid representation.

Representation

Gets the representation.

StandardInstance

Gets a cached instance of a GuidSerializer with Standard 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, Guid)

Serializes a value.

WithGuidRepresentation(GuidRepresentation)

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

WithRepresentation(BsonType)

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