Method CreateGenericSerializer
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
CreateGenericSerializer(Type, params Type[])
Creates the serializer from a serializer type definition and type arguments.
protected virtual IBsonSerializer CreateGenericSerializer(Type serializerTypeDefinition, params Type[] typeArguments)
Parameters
serializerTypeDefinition
TypeThe serializer type definition.
typeArguments
Type[]The type arguments.
Returns
- IBsonSerializer
A serializer.
CreateGenericSerializer(Type, Type[], IBsonSerializerRegistry)
Creates the serializer from a serializer type definition and type arguments.
protected virtual IBsonSerializer CreateGenericSerializer(Type serializerTypeDefinition, Type[] typeArguments, IBsonSerializerRegistry serializerRegistry)
Parameters
serializerTypeDefinition
TypeThe serializer type definition.
typeArguments
Type[]The type arguments.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
Returns
- IBsonSerializer
A serializer.