Method GetSerializer
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
GetSerializer(Type, IBsonSerializerRegistry)
Gets a serializer for a type.
IBsonSerializer GetSerializer(Type type, IBsonSerializerRegistry serializerRegistry)
Parameters
type
TypeThe type.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
Returns
- IBsonSerializer
A serializer.