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