Interface IGuidRepresentationConfigurable<TSerializer>
Provides an interface for configuring the Guid representation in BSON serializers of a specific type.
Inherited Members
Namespace: Primitively.MongoDB.Bson.Serialization
Assembly: Primitively.MongoDB.Bson.dll
Syntax
public interface IGuidRepresentationConfigurable<out TSerializer> : IGuidRepresentationConfigurable, IHasGuidRepresentationSerializer where TSerializer : IBsonSerializer
Type Parameters
Name | Description |
---|---|
TSerializer | The type of the BSON serializer. |
Methods
WithGuidRepresentation(GuidRepresentation)
Configures the BSON serializer with the specified Guid representation.
Declaration
TSerializer WithGuidRepresentation(GuidRepresentation representation)
Parameters
Type | Name | Description |
---|---|---|
GuidRepresentation | representation | The Guid representation to use. |
Returns
Type | Description |
---|---|
TSerializer | A BSON serializer of the specified type, configured with the specified Guid representation. |