Method WithRepresentation
- Namespace
 - MongoDB.Bson.Serialization.Serializers
 
- Assembly
 - MongoDB.Bson.dll
 
WithRepresentation(BsonType)
Returns a serializer that has been reconfigured with the specified representation.
public override MemorySerializerBase<TItem, ReadOnlyMemory<TItem>> WithRepresentation(BsonType representation)
Parameters
representationBsonTypeThe representation.
Returns
- MemorySerializerBase<TItem, ReadOnlyMemory<TItem>>
 The reconfigured serializer.