Method CreateSerializer
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
CreateSerializer(Type)
Creates the serializer.
protected virtual IBsonSerializer CreateSerializer(Type serializerType)
Parameters
serializerType
TypeThe serializer type.
Returns
- IBsonSerializer
A serializer.
CreateSerializer(Type, IBsonSerializerRegistry)
Creates the serializer.
protected virtual IBsonSerializer CreateSerializer(Type serializerType, IBsonSerializerRegistry serializerRegistry)
Parameters
serializerType
TypeThe serializer type.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
Returns
- IBsonSerializer
A serializer.